Read ECONNRESET error during "Retrieving the source data"


Question.

The sObject I'm fetching has around 800k records and when this error occurs the command stays in progress, but doesn't do anything.

What's wrong?


Answer.

 ECONNRESET typically may say 3 things:

  • Internet connection suddenly interrupted.

  • Remote server stopped to respond (due to Salesforce environment maintenance is in progress).

  • Remote call timeout issue due large data and/or slow internetconnection.

    The request timeout for the query is set to 4 min. For very large data and slow internet connection you may face variety of timeout issues.

As a possible solution, try to reduce the amount of fetched records by using WHERE clause.

Last updated on 29th Jan 2023