You need to sign in to do that
Don't have an account?
paul-lmi
Cannot have more than 10 chunks in a single operation
What does this error message actually mean? We're seeing it in some test code exceptions when trying to deploy new code.
System.TypeException: Cannot have more than 10 chunks in a single operation. Please rearrange the data to reduce chunking.
Best Answer chosen by Admin (Salesforce Developers)
paul-lmi
resolved. apparently deleting 5 types of custom setting objects at once was being counted as 10. since DML statements allowed for 100 statements per execution, I ended up just splitting each delete into its own statement. i wouldn't want to do this with visualforce-driven logic, but for scheduled apex, it's fine.