Support Article
Agent switching between tenants fails
SA-103183
Summary
The Standard SLA Agent processes queue items where different items are from different tenants. The switch to the first tenant is successful. However, the Agent fails when it encounters a queue item from another tenant.
Error Messages
{"exception":{"stacktrace":"com.pega.pegarules.pub.context.PRSecurityException: Role 'CFGUSACARD:CallCenterAgent' not found for the current ruleset context [CFGUSACARD_PROD:01-01-01|CFGUSACARD:05-99|CFGUSAC
Steps to Reproduce
- Insert queue records from multiple tenants in to a queue that is used by a standard Agent.
- Have the Agent start processing the records.
Root Cause
A defect in Pegasystems’ code or rules.
After switching to the target tenant of the first queue item, the Agent cannot process the second queue item if it is in a different tenant.
Resolution
Perform the following local-change:
In the Agent schedule, on the Security tab, insert the Access Group PRPC:Agents.
This Access Group can process any queue item from any tenant. After the queue item is processed, the agent switches to that tenant and executes the agent activity. Upon completion, the agent switches back to the PRPC:Agents Access Group and processes the next queue item.
Published August 4, 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.