How to handle [RuntimeError 504] in a separate route?

I am looking for a way to handle “RuntimeError [504]” in a separate route, because I would like an error to be handled automatically without manual intervention.
My initial thoughts about possible solution is this:
I would like to save error code and error type in variables “error_type” and “error_code”.
Then I would like to use filter to trigger separate route if [“error_type” is equal to “RuntimeError”] AND [“error_code” is equal to “504”].
Is it there any specific way how to access error details and/or save errror details to the variable?
But, perhaps, there are better ways to solve it?

There is a screenshot of the part of scenario which triggers error:

There is a screenshot of the 1st error:

There is a screenshot of the 2nd error (error indicates that UNABLE TO OPEN WORKBOOK):

There was 57 operations in total, but only 2 of them triggered an error:

There is a blueprint of the module which triggered an error:
blueprint-module-triggered-error.json (15.3 KB)

Welcome to the Make community!

To allow others to assist you with your scenario, please provide the following:

1. Relevant Screenshots

Please share screenshots of your scenario, any error messages, relevant module fields, and filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:

2. Scenario Blueprint

Please export the scenario blueprint file to allow others to view the mapped variables in the module fields. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

3. Output Bundles of Modules

Please provide the output bundles of the modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.

A. Upload as Text File

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

B. Insert as Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
These are the two ways to format text so that it won’t be modified by the forum:

  • Method 1: Type code block manually

    Add three backticks ``` before and after the content/bundle, like this:

    ```
    content goes here
    ```

  • Method 2. Highlight and click the format button in the editor

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!

Hi Sam.
Thanks for pointing me to the right direction.
I’ve edited the scenario to include relevant details.

regrads

After carefully investigating documentation of Make at this URL I’ve realised where I made a mistake.
Previously I’ve misinterpreted Make documentation and misunderstood a consept of " error handling route".
Indeed solution to my problem is straight forward.
Here is a screenshot of solution:

2 Likes