LinkedIn
Copied!

Table of Contents

Configuring errors for an automation

Define a set of the most probable errors that your automation can return to an external application. By specifying these errors in the automation, the application consuming your API can determine how to handle each possible error scenario.

For example, for an automation for sending email, you might configure an Invalid email account error, or an Authentication failed error. By default, automations are configured with an Execution error (pyExecutionError) and Invalid inputs error (pyInvalidInputs).

  1. Create a new automation or open an existing automation.

    Choices Actions
    Create a new automation Follow the steps in Creating an automation.
    Open an existing automation
    1. In the navigation pane of Dev Studio, click Records.

    2. Expand the Technical category and click Activity.

    3. Locate the automation for which you want to simulate a JSON response and click in its row.

      Automations have the AUTOMATION activity type.
  2. On the Definition tab, in the Errors section, click Add Error.

  3. In the Name field, enter or select an error to pass to the external application.

    Invalid inputs.
    Choices Actions
    New message
    1. To the right of the ID field, click the rule opener.

    2. On the Message Record Configuration page, in the Label field, enter a name for the error message.

    3. In the Context section, in the Apply to field, press the Down Arrow key and select the class that defines the scope of the message rule.

    4. Click Create and open.

    5. On the Details tab, in the Classification field, select the classification to which the error belongs.

      The system populates the Classification field with the classification that you select.
    6. Click Save.

    Existing message
    1. To the right of the ID field, click the rule opener.

    2. On the Details tab, in the Classification field, select the classification to which the error belongs.

      The system populates the Classification field with the classification that you select.
    3. Click Save.

  4. In the Description field, enter a description of the error.

  5. Optional:

    To add additional errors, click Add Error.

  6. Optional:

    To delete an error, click Delete.

  7. Click Save.

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.