I am currently processing an insert in an Apex class and I am getting an error “Too many DML rows: 10001”.
I would like to process more than 10,000 data items, and I would like to do several inserts in a batch process, etc. How can I call the batch from within an Apex class?
Does anyone know how to INSERT or UPDATE more than 10,000 data items?
I tried processing in a schedule batch, but this time we wanted to call the batch within an Apex class, not a schedule batch, so we were not able to do the processing we expected.
hinako is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.