Recently while trying to solve a "Too many DML rows.." error, I ran into the following
error "Cannot have more than 10 chunks in a single operation. Please rearrange the data to reduce chunking."
This error occurs when sObject contains more then 10 object types or combinations.
Basically, to work around the "Too many DML rows" error, I had created a @future method with a single delete DML statement on an sObject which had different objects in it.
To work around this chunking error, I had to create seperate @future calls from the same method based on specific Object Type. This resolved the erorr.
error "Cannot have more than 10 chunks in a single operation. Please rearrange the data to reduce chunking."
This error occurs when sObject contains more then 10 object types or combinations.
Basically, to work around the "Too many DML rows" error, I had created a @future method with a single delete DML statement on an sObject which had different objects in it.
To work around this chunking error, I had to create seperate @future calls from the same method based on specific Object Type. This resolved the erorr.