lwc-utils icon indicating copy to clipboard operation
lwc-utils copied to clipboard

soqlDatatable unexpected token: OR

Open huuse opened this issue 3 years ago • 2 comments

The soqlDatatable does not seem to support using OR in the WHERE conditions. Is this by design?

Error: Invalid SOQL String unexpected token: OR

huuse avatar Dec 02 '21 11:12 huuse

You’ll need to give the full soql string for debugging, it might have to do with how it splits and expectations of where keywords are.

You’ve confirmed it runs in dev console or another tool?

tsalb avatar Dec 02 '21 16:12 tsalb

Thank you for your response. Yes, a simplified version looks like this: SELECT Id, Name, Email, MobilePhone FROM Contact WHERE Email = '[email protected]' OR MobilePhone = '+4792699599'

Running this in dev console works, but not in soqlDatatable. Same error.

huuse avatar Dec 03 '21 07:12 huuse