Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Configuring errors for an automation

Updated on April 6, 2022

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.
    ChoicesActions
    Create a new automationFollow 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.
    For example: Invalid inputs.
    ChoicesActions
    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.
      Result: 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.
      Result: 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.
  • Previous topic Configuring validation for text inputs and outputs in automations
  • Next topic Simulating a response for automation outputs

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us