Exception handling in activity

I have an activity which calls a data transform. In actions after this step, on Exception and on StepStatusFail there is a Jump to error handling.

Here’s the config for my activity.

Howerver, when the data transform fails in runtime, the activity ends and no error handling occurs.

Every guide there is suggests using the above approach for handling exceptions in an activity. What am I doing wrong?

@NikitaZ2 As you mentioned, your code is as per the pega recommendation wrt error handling in activity.

We have faced weird issues with rules in a branch , though it happened rarely.

Can you please try checking out the activity & try if you are seeing a different behaviour ? OR can you merge this activity changes to a ruleset & try if it works differently ?

Can you also share the details of when condition result from tracer ( line 94 in above screenshot) ?

@Byshu Same outcome with merged activity.

When rule checks if property located on a data page does not have a value. Data page fails to load because a missing parameter, therefore when returns true.

I did some testing and it seems to be a specific pega defect. It only happens if a when rule fails inside of an activity step. If we manually throw a RuntimeException in the DT, or manually set status to fail, or access the erroneous DP directly from the activity, error handling works as expected. If we remove the DT and put the failing when rule in pre-conditions of the same step, the defect is reproduced.

I didn’t look into it further and ensured that the when rule never fails as a workaround.

@NikitaZ2 is this issue is resolved, I am using Pega 7.3.1, i am also facing same issue with activity steps, if a datatransform is called and any exception occurs, then Exception on jump step is not executing even though its in main ruleset.

Thanks,