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
Avinash JanardhananAvinash Janardhanan 

Records being created in Salesforce even when sfdc returns error

We have an external site which calls sfdc webservice (create method) to create records in Salesforce. If an error is encountered while creating the records, the site is designed to re-try to insert the record at various intervals. The no. of times it re-tries is currently configured as 5. In some instance we have observed that, Salesforce returns us the error "SF_FAILURE:The operation has timed out", but still the record gets created in Salesforce. And since the site registers this as a failure, it retries the creation and ends up creating 5 duplicates. Is there any reason that SFDC creates a record despite the timeout error. 
PratikPratik (Salesforce Developers) 
Hi Avnish,

Are you using "Database.insert" method? There is parameter AllorNone.
Also if you are getting any error code please post here.

Thnaks,
Pratik 
 
Avinash JanardhananAvinash Janardhanan
Using SOAP, "create" operation. The error we get from sfdc is "The operation has timed out"