Loading

Flow Error: 'Maximum number of duplicate updates in one batch (12 allowed)'

Date de publication: Oct 13, 2022
Description

When multiple duplicate scheduled actions such as waiting interviews are created for the same record this can result in an error due to a limitation of a maximum of 12 duplicate record updates in one batch.

For example this can come about when using bulk api to make a large number of updates to the same record at the same time and then having a flow which is triggered by these updates and contains a wait element. 

As per Transactions and Scheduled Actions Salesforce will batch actions scheduled to occur at the same time. 
"Scheduled actions aren’t performed independently. They’re batched together with other actions that are scheduled to execute at the same time. "
Résolution

Two possible workarounds:
 
1. Avoid updating the same record more than 12 times in the same bulk operation if you have a flow with a wait step triggered by those updates.
2. Add more criteria so you are only really updating a record when necessary, see Avoid unwanted Actions in Process for more info.
Numéro d’article de la base de connaissances

000382298

 
Chargement
Salesforce Help | Article