function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Bhushan burujwaleBhushan burujwale 

Receiving the QUERY_TIMEOUT error. Can it be increased to more than 2 minutes?

Lokesh KumarLokesh Kumar
I don't think so. Salesforce document says: Queries that take longer than two minutes to process will be timed out. For timed out queries, the API returns an API fault element ofInvalidQueryLocatorFault. If a timeout occurs, refactor your query to return or scan a smaller amount of data.