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
- Configure an Advanced agent.
- 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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.