Rollback error handler
The Rollback error handler stops the scenario and reverts any changes made by modules that support transactions, such as MySQL or Data Store. Make cannot undo actions made by modules that don't support transactions, like Gmail > Send an email or Dropbox > Delete a file
When an error occurs, the failed bundle does not continue through the scenario flow and Make doesn't process any remaining bundles. The scenario run is marked as an error in the scenario history, but the scenario itself will not be disabled.
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.
When to use it: Use the Rollback error handler when data integrity is critical and any changes made during a failed run must be undone.
For example: Tom tries to book a hotel room online which requires a deposit. The hotel attempts to charge the Tom's payment card, but the card is declined. The Rollback error handler reverts the hotel reservation. Everything is undone, no hotel is reserved and the hotel reverts to it original room availability.
For more information about error handling strategies check the Overview of error handling .
How the Rollback Error handler works
When a module encounters an error, the Rollback error handler stops the scenario and reverts changes made by the erroring bundle in modules that support transactions. The behaviour depends on whether the Auto-commit option is enabled in your scenario settings.
- Auto-commit enabled — Only the module that produced the error can revert its changes. Changes made by previous modules in the scenario are committed and cannot be rolled back.
- Auto-commit disabled — All changes made during the bundle's execution across every transaction-supported module can be reverted.
Use the Rollback error handler
In this example, we have a scenario that updates a data store and then sends a Slack message. If the data store update fails because of a missing value (a BundleValidationError), Make must stop the scenario and revert any changes made.
This demo scenario contains five modules.
- 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.
This is how the example scenario looks:

When we run the example scenario, we would get the BundleValidationError:


Let's see how to handle this error using a Rollback error handler.
Right-click the module that is causing the error. In the menu, select Add error handler.
Select the Rollback error handler.
Optional: Go to scenario settings and disable the Auto-commit option.
When an error happens, the module that outputs the error reverts changes if the module supports transactions. If you disable the Auto-commit option, all modules in the scenario that support transactions undo changes.
Save your scenario.
You've successfully added the Rollback error handler to your scenario.
What happens when you run the scenario after adding the Rollback error handler.
When the Rollback error handler is added to the Update a record module, the Rollback error handler would stop processing the bundle in the scenario.
When an error occurs in the Data store module, the scenario stops and Make reverts changes made by the erroring bundle in modules that support transactions.
Make wouldn't process the remaining bundles.

Let's check the data in the data store as well.
In this example, before running the scenario, the data store contained the following data:
{we need a better example}



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.
If you disable the Auto-commit option in the scenario settings, Make reverts the changes that happened when Make was processing the bundle in modules that support transactions.

- The first bundle of data gets through the scenario flow successfully and updates the first row of data in the data store both times. The first row contains the update from the second Update a record module: ID = 5, Name = Test 5.
- The second bundle gets to the first Update a record module successfully, but causes an error in the second module. The Rollback error handler reverts the update from the second bundle and stops the scenario.
- Make doesn't update the third row because the Rollback error handler stopped the scenario run already. The data in the third row remain the same: ID = 3, Name = Test 3.
If you keep the Auto-commit option enabled, Make reverts the changes made by the module that output the error if the module supports transactions.

- The first bundle of data gets through the scenario flow successfully and updates the first row of data in the data store both times. Make commits all changes and they cannot be rolled back later.
- The first row contains the update from the second Update a record module: ID = 5, Name = Test 5.
- The second bundle gets to the first Update a record module successfully. Make commits all changes and they cannot be rolled back later. The second bundle causes an error in the second module.
- The Rollback error handler prevents the update in the second module and stops the scenario. The second row contains the update from the first module only: ID = 4, Name = Test 4.
- Make doesn't update the third row because the Rollback error handler stopped the scenario run already. The data in the third row remain the same: ID = 3, Name = Test 3.
You can use the Rollback error handler to stop the scenario run and undo changes when the module outputs an error.