The error handling feature gives you the power to effectively handle unexpected errors. When building a scenario, you can also create for each module a new route with extra logic and filters that will solve possible problems that occur during the execution of the scenario. By adding special directives to your scenario, you can determine the way Integromat shall process the remaining part of the scenario if an error occurs.
The picture shows errors occurring during the execution of this simple scenario.
In this example, the scenario downloads images from a RSS feed and uploads them to a FTP server. The RSS module is set to return 3 bundles. The scenario was, however, interrupted when processing the second bundle.
If a trigger encounters an error and you have no error handling built into your scenario, the trigger will not update its position and could result in data loss.
For more information about how triggers can process multiple bundles at once, visit the Triggers section.
If we use the Ignore directive, Integromat will ignore the error and skip the RSS feed bundle that generated the error. The scenario will then continue to process the next bundle in the line. As a result, only two files will be uploaded to FTP.
Since we handled the error, the scenario will complete successfully and the trigger will move on to the next bundle. Next time the scenario runs, it will process new bundles.
The error handling route may not only contain directives but also contain modules. By adding other modules, you can execute a whole different logic if an error occurs. As shown in the picture, if the HTTP module encounters an error, you can run for example, another HTTP module. If you add the Resume directive, the scenario execution will go back to the point where the error occurred and continue as if no error was encountered.
For example, if you store data redundantly and your primary source fails, you can use your secondary data source.
By using the Break directive you can stop the execution of a scenario, so you can fix errors manually. The incomplete run will be saved in the Incomplete executions section. Here, you can adjust the remaining part of the scenario, so it is executed without errors.
You also have the option to set Integromat to try to complete the execution of your scenario in set intervals. If it does not succeed, you will be notified so that you can fix the run manually.