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
anam79anam79 

Bulk Query results - InternalServerError

Hi,
Sometimes when retrieving Bulk query results, the query completes successfully and I can pull back some of the results files but for others I just get an XML file with this error info:

<exceptionCode>InternalServerError</exceptionCode>
<exceptionMessage>Error while getting query result</exceptionMessage>

Anyone know what might cause this?
Thanks!
 
ShashankShashank (Salesforce Developers) 
This could just be due to the request taking too long with the salesforce servers. Are you still facing this issue?
anam79anam79
Yes we still see it quite often. If we retry later it usually works so it is not a major issue.

Do you think this could be due to throttling? Should we avoid doing several requests together?
ShashankShashank (Salesforce Developers) 
You may find this useful: https://help.salesforce.com/apex/HTViewSolution?id=000206843&language=en_US