+ Start a Discussion

Partner API error message

I'm getting this error when updating objects via the partner API:


LIMIT_EXCEEDED: Cannot have more than 10 chunks in a single operation. Please rearrange the data to reduce chunking


In my case, I was updating Lead and Contact fields in the same call / operation.  Performing each type of operation separately fixed the problem in my case, however I'm hoping to understand what exactly this error means.  Is it some combination of sObject types and fields?

Best Answer chosen by Admin (Salesforce Developers) 

The documentation states there is a limit of 10 chunks:  http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_update.htm


I believe you have two options:


1. Reorder the object array so that similar objects are together within the array so that less chunks will be created.

2. Perform additional API requests to get past the 10 chunk limit.