首页 > 技术文章 > Too many retries of batch save in the presence of Apex triggers with failures

salesforcechina 2021-12-14 10:51 原文

 

System.DmlException: Process failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, 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: []

 

出现上面的错误提示,主要原因是在保存数据的时候有问题,无法保存成功。

 

具体的解释可以查看以下链接:

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_dml_bulk_exceptions.htm

推荐阅读