You need to sign in to do that
Don't have an account?

Getting error while creating task through Apex in Salesforce
We are getting following error while creating a task in Salesforce.
Error msg: Too many retries of batch save in the presence of Apex triggers with failures: when triggers are present partial save requires that some subset of rows save without any errors in order to avoid inconsistent side effects from those triggers. Number of retries: 2
We are getting this error on calling SforceService.create() function.
Please let me know the solution for this.
Error msg: Too many retries of batch save in the presence of Apex triggers with failures: when triggers are present partial save requires that some subset of rows save without any errors in order to avoid inconsistent side effects from those triggers. Number of retries: 2
We are getting this error on calling SforceService.create() function.
Please let me know the solution for this.
This indicates that there were too many failures in the code executed.
In order to avoid this error, you may have to reduce the batch size.
More information in this link:
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_dml_bulk_exceptions.htm
--
Regards,
Grazitti Team
Web: www.grazitti.com
Email: sfdc@grazitti.com
This is records insert error. Can you provide your code so that the errors can be pointed out.
Thanks,
Yogesh
The issue is occurring for few leads only, for other leads it is successfully creating task in Salesforce. Also we have provided the batch limit of upto 200 records for single create call.
If there is some trigger running then it should affect task creation for all leads, but here our system sends bulk creation(200 at time) of task and few of them (not all) getting failed with the error specified above.