Support Article
Agent not processing though exceptions handled in agent activity
SA-96786
Summary
After upgrading Pega Platform 7.3.1 to Pega Platform 8.2.2, agents stop processing though the exceptions are handled in the Agent activity.
A record is created in the agent activity using the RDB-Save method and the Jump condition is added on the step on exception to continue its processing. However, the agent is terminated with an error.
Error Messages
ERROR - Batch activity threw:
com.pega.pegarules.pub.PRRuntimeException: unable to execute agent: Exception
at com.pega.pegarules.session.internal.async.agent.QueueProcessor.execute(QueueProcessor.java:712) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.async.BatchRequestorTask.run(BatchRequestorTask.java:1155) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.PRSessionProviderImpl.performTargetActionWithLock(PRSessionProviderImpl.java:1371) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:1114) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.PRSessionProviderImpl.doWithRequestorLocked(PRSessionProviderImpl.java:995) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.async.BatchRequestorTask.run(BatchRequestorTask.java:816) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.async.Agent.queueBatchActivityForAgent(Agent.java:1571) ~[prprivate.jar:?]
at com.pega.pegarules.session.internal.async.Agent.queueBatchActivityForAgent(Agent.java:1340) ~[prprivate.jar:?]
Steps to Reproduce
- Create a custom agent.
- In the Agent activity, save the record using the RDB-Save or OBJ-Save methods.
- Add a Jump condition on the step to continue the agent processing on exception.
- Insert the same record in to the database which displays the exception.
Root Cause
A defect in Pegasystems’ code or rules.
The Step status failures resulted in agent termination.
Resolution
Perform the following local-change to avoid agent termination:
Invoke the Activity-Clear-Status before exiting the agent activity.
This feature is implemented in Pega Platform 8.2.5.
Published July 17, 2020 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.