Problem
This error occurs when the length of the SOQL statement is too long and fetches a large number of fields.
Solution
Refer to this article on Salesforce for more information: Maximum length for SOQL statements
...
This error occurs when the length of the SOQL statement is too long and fetches a large number of fields.
Refer to this article on Salesforce for more information: Maximum length for SOQL statements
...