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
venturec3venturec3 

Queryresult keeps timing out no matter what the batch size limit is set to

Does anyone have any suggestions on how to troubleshoot a timeout issue with Queryresult? No matter what batch size I set the queryoptions to, it times out whether 5 records or 500 records.

 

I'm able to log in successfully, but when I run the query, the operation always times out.

Best Answer chosen by Admin (Salesforce Developers) 
venturec3venturec3

I figured it out. I set the timeout value for SforceService to 4 minutes instead of using the default 2 minutes.