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.
-
In Dev Studio, search for the standard data transform called pxErrorHandlingTemplate.
-
Save pxErrorHandlingTemplate with a new name to create a new data transform in your application.
Next, in your response data transform, apply the error handling data transform you just created.
-
Open the response data transform. Create a new response data transform if one does not exist.
-
Use the standard when condition pxDataPageHasErrors to detect errors in the data page.
Vorsicht: 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.
Configuring error detection in an activity
The error handling data transform may be used when connectors are called from an activity as well.
-
Define an error label for the error handling step.
-
Identify the steps in your activity that include error detection. Click Jump to define a transition condition.
-
Select the StepStatusFail when condition to detect errors. Jump to the error step when an error occurs.
-
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.