+ Start a Discussion

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) 

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