How do you catch deadlock exceptions and terminate processing

I have a proerty set process in DataTransform such like as below
(D_Datapage_pxResultCount==0)?“M001”:(D_Datapage_pxResults(1).item +1)

the datapage(D_Datapage) get the data from a DataReportdefinition
But when the DT is excuted a database deadlock occurred.The above processing does not terminate abnormally, but sets the value 001 M001 property
the attachment is coding details and the log.
Please confirm them.

Accenterure
Liu

PegaRULES-09-26-2023-1 - Copy.txt (2.62 MB)

@AkitoshiO

Handle the exception in the Post Data Transform of the Data Page and set a flag if there is exception.

In the Data Transform based on the flag, you can run the Data Page again after sometime.