Skip to main content
This content is now archived and is no longer updated. Progress is not calculated. Pega Cloud instances are disabled, and badges are no longer awarded.

Configuring error detection for integration

Configuring error detection for integration

The following procedure explains how to configure error detection and handling for data pages and activities. Data pages and activities invoke connectors to read data from and write data to external systems.

Configuring error detection for a data page

To configure error detection for a data page, create a new data transform for error handling. This data transform is applied when an error is detected.

  1. In Dev Studio, search for the standard data transform called pxErrorHandlingTemplate.

    ootb px error handling template
  2. Save pxErrorHandlingTemplate with a new name to create a new data transform in your application.

    error handling master dt

    Next, in your response data transform, apply the error handling data transform you just created.

  3. Open the response data transform. Create a new response data transform if one does not exist.

    data page response dt
  4. Use the standard when condition pxDataPageHasErrors to detect errors in the data page.

    Caution: The steps highlighted in the following image are automatically added to response data transforms by default. When you change the name of the error handling data transform, you must update step 2.2 to apply your error handling data transform instead of the standard error handling data transform.
    error detection dt

Configuring error detection in an activity

The error handling data transform may be used when connectors are called from an activity as well.

  1. Define an error label for the error handling step.

  2. Identify the steps in your activity that include error detection. Click Jump to define a transition condition.

    error detection activity
  3. Select the StepStatusFail when condition to detect errors. Jump to the error step when an error occurs.

    detect error transition
  4. You can use the error handling data transform you created previously that specifies how to handle the error. Select the Apply-DataTransform method. In the error handling step, select your data transform.

    err step activity

This Topic is available in the following Module:

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

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice