Automation troubleshooting

Automation rules have defined errors codes and messages for problems that might occur when your application is using an automation. Use the following guidelines to understand and troubleshoot automation error handling and flow problems.

Setting automation errors in the implementation activity

The error codes on the automation rule are Rule-Message rules that can be thrown by the automation. Use the pxAddAutomationError function to set these errors on the pyAutomationErrors output page in the implementation activity.

Viewing automation errors

In the Tracer tool, you can view the errors on the generated pyAutomationErrors page or as a list in the automation results tracer event. You must enable this event in the Tracer tool; it is not enabled by default.

When working with errors in a design, do a page lookup of pyAutomationOutputs, and access pyErrorCode and pyErrorDetails. If pyErrorCode is blank, no errors have occurrred.

Automation errors in a flow

If an error occurs in an automation in a flow, processing is moved into the problem flow. Use the Clipboard tool and the assignment to determine whether the error occurred because of a problem with the flow itself, with incorrect inputs, or because of a failure in the automation itself. After you fix the problem, restart the flow.

You can also customize the problem flow to take compensating action when an error occurs.