Print this page

Maximum length for SOQL statements

Knowledge Article Number 000199092
Description Maximum Length of SOQL statements is 20 K . This is a hard limit to make sure the system works smoothly without affecting the customers. This can only be increased by Product Management based on their discretion.

User's may run into this limit when they have a huge SOQL query  that fetches huge number of fields . 

Resolution Resolution to this issue is to split the actual query  into multiple queries and run them in batches if necessary.

promote demote