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
SS KarthickSS Karthick 

connection reset exception while upserting 20k records

Hi folks,

Can anyone tell me how to resolve the below error while upserting 20k records.but it works fine if it is 10k.
I don't know why its comes.Am using soap api for connecting sfdc.

faultCode: {}Server.userException
faultString: Connection reset
{} Connection reset

Thanks in advance,
This looks like a standard network timeout issue.  You can try to increase your timeout in your configuration or just go with the smaller batch size. Personally I would go with the 10k batch over the 20k batch.  If it's not a timeout issue then it could be that you have a network hiccup and that's causing a connection reset.  How long does it run before you get the connection reset?