You need to sign in to do that
Don't have an account?
Avinash 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.
Are you using "Database.insert" method? There is parameter AllorNone.
Also if you are getting any error code please post here.
Thnaks,
Pratik