Automatic error handling

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.

Errors, errors, errors

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.

RSSWatch RSS feed items3HTTPProcess a HTTP(S) request2FTPUpload a file1

1. Ignoring an error

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.

RSSWatch RSS feed items1HTTPProcess a HTTP(S) request3FTPUpload a file2Ignore1

2. Fix an error while executing a scenario

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.

RSSWatch RSS feed items1HTTPProcess a HTTP(S) request3FTPUpload a file3HTTPProcess a HTTP(S) request1Resume1

3. Break the execution of a scenario

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.

RSSWatch RSS feed items1HTTPProcess a HTTP(S) request2FTPUpload a file1Break1

Video tutorial - Error handling