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

Advanced agent displays multiple thread in same run

SA-77447

Summary



Advance agent displays multiple threads running in the same session. Additionally, the agent attempts to commit an already committed record in the same session.


Error Messages



com.pega.pegarules.pub.database.DuplicateKeyException: ORA-00001: unique constraint (ABC) violated


Steps to Reproduce

  1. Configure an Advanced agent.
  2. Save the agent schedule when one run of the agent is in progress. Check the logs for unique constraint exceptions.


Root Cause



Agent schedules are frequently saved to disable or enable them. As one ruleset contains all the agents, a save of the unrelated agent triggers the restart of the agent queue. This caused frequent unique constraint exceptions. According to the logs, the save of the agent schedule occurs when an agent run is in progress. This works if the save occurs when the agent is sleeping in between the runs.


Resolution



As a local-change, do not save the agent schedule when one agent run is in progress.

Published August 19, 2019 - Updated October 8, 2020

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