Read ECONNRESET error during source retrieval.


Question

I'm attempting to fetch around 800k records for an sObject, but I encounter an error, and the command remains in progress without completing any actions. What could be the issue?

ECONNRESET Error Screenshot


Answer

The ECONNRESET error typically indicates one of three issues:

  1. Your internet connection was suddenly interrupted.
  2. The remote server has stopped responding, possibly due to maintenance in the Salesforce environment.
  3. The remote call timed out due to the large data size or a slow internet connection. The request timeout for queries is set to 4 minutes, which can lead to various timeout issues under these conditions.

To mitigate this, consider reducing the number of records fetched by incorporating a WHERE clause in your query.

Last updated on 20th Apr 2024