Category Archives: DML

How to fix Cannot have more than 10 chunks error

Today I’m going to discuss about fix for “System.TypeException: Cannot have more than 10 chunks in a single operation. Please rearrange the data to reduce chunking” error. There are a lot of materials on the web where people suggest solutions … Continue reading

Posted in apex, Bugs, DML, Error, example, Governor Limits, lifehack, Posts in English, record, salesforce | Tagged , , , , , , , , , | 2 Comments

Concurrent access and race condition in Salesforce on insert operation

Assume you have some VisualForce page with complex logic which also has to create some custom object record if it does not exist for current user and current month or even for current day. Is there any possibility to prevent … Continue reading

Posted in DML, Posts in English, race condition, salesforce | Tagged , , , , , , , | 3 Comments