Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

  1. Create a custom agent.
  2. In the Agent activity, save the record using the RDB-Save or OBJ-Save methods.
  3. Add a Jump condition on the step to continue the agent processing on exception.
  4. 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

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us