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.

AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.SocketException: Connection reset
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.net.SocketException: Connection reset

Thanks in advance,
Karthick.S
pconpcon
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?