Support Article
Exceptions in DataTransforms are not evaluated by StepStatusFail
SA-18135
Summary
When a DataTransform is called from an Activity using Apply-DataTransform method and the DataTransform has an exception or error, the exception or error is not passed to the calling activity, even if a StepStatusFail When rule is placed or 'On Exception, Jump To Later Step' is selected.
Error Messages
Not Applicable
Steps to Reproduce
1. Create a new activity.
2. Use Apply DataTransform step.
3. Have property set inside DT to 150/0 (divide by zero).
4. Use JUMP condition to use stepStatusFail When conditions and redirect to next step during exceptions.
5. Verify if the stepStatusFail If True and If False is applied.
Root Cause
In case of generic unhandled exceptions like arithmetic exceptions (divide by zero), the stepStatusFail will not be evaluated.
Resolution
If there are generic unhandled exceptions such as arithmetic exceptions (divide by zero), the stepStatusFail will not be evaluated. In this case, you can use On exception, Jump to later step label field to handle it.
In case of Pega related issues or exceptions, which are instances of PRRuntimeException class, the stepStatusFail will be evaluated to True or False and you can handle these kind of scenarios using IF TRUE and IF FALSE params on Jump condition.
Published January 31, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.