You need to sign in to do that
Don't have an account?
Amish Ranjit
Exception:Too many DML rows: 10001 for batch class
I have use batch class to perform DML operation but I got a an email saying I have " System.LimitException :Too many DML rows: 10001". I try to solve this issue but could not figure out. Would be glad if anyone could help me out with this issue.
Are you using any trigger or apex classes which are not bulkified?
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_gov_limits.htm
There is no way you can make the batch class update more than 10,000 records. That is a governor limit, so there is nothing you can do within that same batch to process it. What you can do instead is create a batch job to update those records, in addition to the batch job you already have.