When attempting to update a large number of Salesforce Event records — for example, 6,000 recurring events — using Data Loader in bulk mode, the following error is returned:
"Apex Event trigger cannot handle batch operations on recurring events."
This error occurs because Apex triggers on the Salesforce Event object cannot process batches that contain more than one recurring event type at a time.
Apex triggers on the Event object have a platform limitation: a trigger invoked by an insert, delete, or update of a recurring event or recurring task results in a run-time error when the trigger is called in bulk via the API. This means any batch that mixes recurring event types or exceeds a batch size of one for recurring events triggers this error.
This is a platform limitation for Apex triggers on recurring events. The trigger cannot process a batch containing multiple recurring event types simultaneously. The trigger's logic must be separated so it does not receive a batch containing more than one recurring event type at a time. This handling must be performed outside the trigger — typically at the data loading level.
Use one or more of the following workarounds to successfully load recurring event records:
Workaround 1: Set Data Loader Batch Size to 1 for Recurring Events Set the batch size in Data Loader to 1 when loading recurring event records. This ensures each batch sent to Salesforce contains only one recurring event, preventing the trigger from receiving a multi-record batch of recurring events.
Workaround 2: Separate Recurring and Non-Recurring Records If there are a large number of records and loading with batch size 1 is too slow, separate the recurring event records from the non-recurring event records into two separate files. Load the recurring event records using Data Loader with batch size 1. Load the non-recurring event records separately using a higher batch size.
Workaround 3: Handle Batch Separation in the Trigger Ensure that the Apex trigger does not receive a batch containing more than one recurring event type. Add logic outside the trigger — for example, in your data preparation process — to pre-separate recurring and non-recurring events before they are sent to the API.
000386564

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.