Integromat
  • Back to website
Articles in this section
  • Throw
  • Retry
  • Advanced error handling
  • Directives for error handling
  • Introduction to Error Handling
  • Error processing
  1. Integromat Support
  2. Using Integromat
  3. Errors

Introduction to Error Handling

Michal Máša Michal Máša Updated January 22, 2021 10:49

If you are reading this, you are probably familiar with errors that occur during the execution of a scenario. This mostly happens if a service is unavailable due to a failure, a service responds with unexpected data or the validation of input data fails.

If a module throws an error during the scenario execution and there is no error handling route attached to the module, a default error handling logic is executed as described on the Error processing page.

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. Visit this page to learn about the directives in detail.

Basics

Learn the basics of using Error Handlers in the 4-minute video below:

Error handler route

To add an error handler route to a module (let us call it Module X), right click (or touch and hold if you are using a touch screen-device) the module and select Add error handler as shown below:

intro_1.png

You will see a list of Directives as well as the apps being used in your scenario. If Module X is the last module in your route, you need to choose one of the directives. Else, you can go on to add one or more modules to your route, in which case, the Ignore directive is applied by default to Module X and in the event of an error, the subsequent modules on that route are processed.

intro_2.png

As you can see below, if an error occurs while executing the Create a folder module, the Ignore directive will be applied automatically 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 move to the List all files in a folder module on the regular route.

Intro_3.png

Also, to differentiate an error handler route from a regular route, the former is composed of transparent circles as shown above.

Error handling directives

The directives are briefly explained below and you may visit the Directives page if you'd like to understand them in detail.

There is a total of five directives which can be grouped into the following 2 categories based on whether a scenario execution should continue or not:

The following directives ensure that a scenario execution continues:

  • Resume allows you to specify a substitute output for the module with the error and the scenario execution status is marked as success
  • Ignore simply ignores the error and the scenario execution status is marked as success
  • Break stores the input to the queue of incomplete executions and the scenario execution status is marked as warning

On the other hand, if a scenario execution should be stopped, one of the following directives need to be used:

  • Rollback stops the scenario execution immediately and marks its status as error
  • Commit stops the scenario execution immediately and marks its status as success

Additional Resources

  • Directives for error handling
  • Advanced error handling (includes the set up of the Dropbox Scenario referenced above)
  • Watch this 4-part video course to learn all about error handling in less than 22 minutes

Was this article helpful?
56 out of 123 found this helpful
Menu
  • Features
  • Apps & Services
  • Templates
  • Pricing
  • What's new
  • Use cases
Information
  • Terms,  Privacy
  • FAQ
  • Help & Tutorials
  • Community
  • Affiliate Program
  • Blog
Developers
  • Developer Platform
Company
  • About the company
  • Join our team
  • Contact
Follow us
© 2020 Integromat by Celonis. All rights reserved. Integromat® is a registered trademark.
  • English