ERROR: QUERY_TOO_COMPLICATED in the log file
Problem
This error occurs when the length of the SOQL statement is too long and fetches a large number of fields.
...
This error occurs when the length of the SOQL statement is too long and fetches a large number of fields.
...