Error processing

Michal Masa
Updated August 13, 2018 07:35

Sometimes an error can occur during the execution of a scenario. This mostly happens if a service is unavailable due to a failure to connect to a service or if a validation fails. Below we describe the common errors that you may encounter.

Error types

Integromat distinguishes between several basic error types. It will react differently depending upon on the type of error that occurred.

Connection Error (ConnectionError)

Connection error is the most common error that you may receive and unfortunately, Integromat cannot avoid it. The problem arises when Integromat establishes a connection to a third-party service that is overloaded or temporarily unavailable (e.g. due to maintenance).

What happens next if this error occurs, depends on which module it was encountered on. If the error occurs on the first module of a scenario, the execution of the scenario is terminated with a warning message. Integromat will then repeatedly try to rerun the scenario at increasing time intervals until it is successfully completed. If these attempts fail, Integromat will stop the execution of the scenario altogether.

If the connection error occurs on a module other than the first one, the subsequent steps depend on whether or not you checked the Allow storing incomplete execution option when setting the scenario. If this option is enabled, the execution of the scenario is moved to the Incomplete executions folder where Integromat tries at increasing intervals to complete the scenario. If all attempts fail, the execution will remain in the Incomplete executions folder and will require manual intervention by the user. If the Allow storing incomplete executions option is disabled, the execution of the scenario ends with an error followed by a rollback phase.

Example

Imagine, your scenario contains the Google Photos trigger Watch photos and videos. However, the Google Photos service is unavailable for 30 minutes due to maintenance. As you can guess, when Integromat starts the scenario, Google Photos is unable to retrieve new photos or videos. The scenario stops and tries again in 10 minutes. As the service continues to be unavailable within this time frame, Integromat is still unable to get information about new photos. Next run of the scenario is scheduled in 1 hour. The Google Photos service is available again within this time and the scenario runs as expected.

Data error (DataError)

A data error is generated when an item is incorrectly mapped and does not pass the validation performed on the Integromat side or on the side of the third-party service being used.

If this error occurs, the scenario, up to where the module failed, is moved to the Incomplete executions folder where you can troubleshoot the issue. However, the scenario does not stop and continues to run according to its schedule. To stop the execution of the scenario when Data error appears, enable the Sequential processing option in the scenario settings.

If you have not enabled the Allow storing incomplete executions option in the scenario settings, the execution of the scenario terminates with the error and a rollback is performed.

Example

If your scenario contains the Twitter action Create a tweet, the Twitter's 140-character limit for a tweet cannot be exceeded. If you try to tweet more than 140 characters, the execution of the scenario will terminate with a data error.

Duplicate Data Error (DuplicateDataError)

If Integromat tries to insert the same bundle twice into a service that does not allow duplicate data, a duplicate data error is generated. If this error occurs, Integromat proceeds in the same way as as it does for the data error.

Example

A scenario containing the Twitter action Create a tweet will terminate with this error if Integromat tries to insert the same tweet twice.

Invalid Access Token Error (InvalidAccessTokenError)

An invalid access token error occurs when Integromat cannot access your account registered with a third-party service. This mostly happens when you revoke access rights for Integromat in the administration of a given service but related scenarios keep running according to schedule.

If this error occurs, the execution of a scenario is stopped immediately. The rest of the scenario starting from the module where the error occurred is moved to the Incomplete executions.

Rate Limit Error (RateLimitError)

If a limit set by a given service is exceeded, a rate limit error is generated. If this error happens, Integromat proceeds in the same way as it does for the ConnectionError.

Example

You will encounter this error if you try to send more than 1000 tweets within 24 hours. If this happens, wait until the limitation resets within the time frame.

Incomplete Data Error (IncompleteDataError)

An incomplete data error occurs only with triggers. This error is generated if a trigger fails to download required data from a given service.

Example

Imagine, you have a scenario with the Google Photos trigger Watch photos and videos. If the scenario is executed while you are uploading photos or videos to a selected album, Integromat might try to download a file that is just being uploaded to Google Photos (e.g. a long video). If this happens, the scenario will terminate with the IncompleteDataError.

Run time error (RuntimeError)

If any other error (not mentioned above) appears during scenario execution, it is reported as a RunTimeError.