Commit error handler
Modules that support transactions are labeled with the "ACID" label.
Before you use the Rollback or Commit error handlers, take a look at the auto commit scenario setting first.
- JSON - Parse JSON provides test data in the form of an array of three record IDs.
- Iterator splits the array into individual bundles.
- Data store - Update a record: Updates the data in the data store.
Data store - Update a record: This module updates the data again. This time the module works differently. In the module mapping, there is a mapping that intentionally creates an error:
The mapping inserts a null value into the required Key field, which always creates the BundleValidationError.
Having two data store modules doing the same thing, but one of them failing, will make a good example for the Commit and Rollback error handlers.
- Slack - Send a message: Sends a message to a private testing channel.





Let's check the data in the data store as well.



The mappings for the Update a record modules. The first module updates the ID column to the number 4 and the Name column to the text Test 4.
The second module updates the ID column to the number 5 and the Name column to the text Test 5.

- The second bundle gets to the first Update a record module successfully, but causes an error in the second module.
For more information about error handling strategies check the overview of error handling.
Modules that support transactions are labeled with the "ACID" label.
Before you use the Rollback or Commit error handlers, take a look at the auto commit scenario setting first.


- Right-click the module that is causing the error. In the menu, select Add error handler.
- Select the Commit error handler.
- Save your Make.
