When executing a scenario, sometimes errors occur. Usually, this is the result of server issues, the service being temporarily unavailable, or the input of data into the service failed. In the event that the user has not included an error handling process to the original module, a default error handling process will be executed instead.
Users can customize this default error management process by adding it to the module. Alaya Connector offers 5 different methods; users can insert their preferred method into the module. Learn more about them here.
By adding an error handler route to a module, you can replace the default error handling logic with your own. Integromat offers 5 different directives, any of which can be inserted at the end of your error handler routes.
Adding an Error Handler
To add an error handler route to a module, right-click (or touch and hold if you are on a mobile device) the module and select Add error handler as shown below:
You will see a list of Directives and apps used in your scenario. Choose one of the directives to your module, if it is the last module in your route. Otherwise, add one or more modules to your route. Users may expect that the Ignore directive will be applied by default. When an error occurs, the subsequent modules on that route are processed.
As an example, if an error occurs while executing the Create a folder module, the Ignore directive will be applied and the scenario will move to the next module on the error handler route if the filter "Data Error Takes Place" returns one or more bundles.
However, if there is no error, the scenario will execute as usual.
The error handler route is visually different from all other regular routes and is shown in transparent circles.
Error handling directives
There is a total of five directives that can be grouped into the following 2 categories:
The following directives ensure the continuation of a scenario execution:
- When an error occurs, Resume allows you to specify an alternative output for the module and the scenario execution status will be marked as a success
- Ignore dismisses the error and the scenario execution status will be marked as a success
- Break stores the input to the queue of incomplete executions and the scenario execution will be marked as a warning
The following directives ensure that a scenario execution is stopped:
- Rollback immediately stops the scenario execution and marks its status as an error
- Commit immediately stops the scenario execution and marks its status as a success
Article is closed for comments.