MALFORMED_QUERY sync error#
Issue#
In some cases, you may face a situation where your synchronization is not running, and the following error message is shown in Context Sync settings:
MALFORMED_QUERY: Semi join sub-selects are only allowed at the top level
WHERE expressions and not in nested WHERE expressions.
The issue is related to the known Salesforce API limitation, which does not allow using the query with specific items. Usually, such queries are generated when the Salesforce Contacts List View with the Filter by Campaign Name is used in your organization.
How to address the issue#
To resolve the error, you need to change the filter (sync scope) for down-syncing contacts from Salesforce to your mail client in Context Sync settings.
In the Context Panel, click the menu icon and go to Context Sync settings.
Find the Contacts section and click Customize scope.
In the drop-down list, choose the desired custom Salesforce view to synchronize only contacts available in the selected Salesforce view.
Click Apply to save the changes.
Once the Contact Filter configuration is done, you need to enable or force synchronization to check if the issue is resolved.
If the issue still persists#
If the troubleshooting steps described above have not resolved the synchronization issue, contact Revenue Grid Support for additional investigation and describe the steps you completed.
Exchange Server
Microsoft 365
Google