Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - When using more complicated WHERE clause in query, strange things happen #939

Closed
anna-walach-wexinc opened this issue Nov 29, 2024 · 4 comments
Assignees
Labels
bug Something isn't working, looks like a bug

Comments

@anna-walach-wexinc
Copy link

Describe the bug
I want to restrict data retrieved from the org and try to create where clause with a "not in ()" statement and one more statement. The SFDMU adds additional "not" in the next part of the query and then throw "invalid query error".

To Reproduce
Create a query with where clause containing a "not in ()" phrase and then another phrase after it, .e.g
where industry not in ('Electronics') and industry != null

Expected behavior
The where clause of query should behave the same way as it behaves in Developer Console and not get "not" operator in random places.

export.json
{ "objects": [ { "operation": "Upsert", "externalId": "Name", "query": "select id, name, industry, type from account where industry not in ('Electronics') and industry != null", "master": true } ] }

Log file
2024-11-29__18_37_50.log

@anna-walach-wexinc anna-walach-wexinc added the bug Something isn't working, looks like a bug label Nov 29, 2024
@hknokh
Copy link
Collaborator

hknokh commented Nov 29, 2024

Hello, @anna-walach-wexinc

Thank you for reporting a bug.
I will take a look at it as soon as possible and let you know of any updates.

Cheers

@hknokh2
Copy link
Contributor

hknokh2 commented Dec 1, 2024

Hello,

The NOT clause is not supported by SFDMU and may cause various issues. Please avoid using it.

Regards.

Copy link

github-actions bot commented Dec 5, 2024

This case has been marked as 'to-be-closed', since it has no activity for the 3 days.
It will be automatically closed in another 3 days of inactivity.

@github-actions github-actions bot added the to-be-closed The issue is about to be closed label Dec 5, 2024
Copy link

github-actions bot commented Dec 8, 2024

This case has been closed, since it has no activity for the last 6 days. Feel free to reopen it, if you need more help.

@github-actions github-actions bot closed this as completed Dec 8, 2024
@github-actions github-actions bot removed the to-be-closed The issue is about to be closed label Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working, looks like a bug
Projects
None yet
Development

No branches or pull requests

3 participants