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
yanzi liyanyanzi liyan 

The webservice API (Soap) return error message" The Operation has time out"

Our program call Salesforce's Webservice API to create Cases, the corresponding method name is: create (sObject[] sObjects).
Sometimes Case cannot be created successfully (about one-third probability), and the error message is "The operation has timed out"
More details:
1. The related Objects contains only one Case object, and the Case object contains only 6 fields, so the amount of data is very small.
2. We use a customer's Sandbox account to test.
3. We found that the process of creating has a long execution time, sometimes 3 to 4 seconds, sometimes more than 30 seconds, and will return the error message "The operation has timed out" when the execution time exceeds 100 seconds.
4. We tested the network between the server and the Salesforce sandbox and found no network problems.
5. If we switch to another Salesforce account (not a sandbox account), the problem does not exist.
User-added imageUser-added image
Neethu uNeethu u
Hi Yanzi

The performance of sanbox and production will be different and especially on the API calls. Please refer the below link to know more on which all areas the performance is impacted.
https://salesforce.stackexchange.com/questions/69795/are-sandboxes-slower-than-production-orgs

Please mark it as best answer if it helps you to arrive at a conclusion.

Thanks,
Neethu