I have always used Work-.UpdateStatus to set .pyStatusWork as I appreciate what it does besides setting .pyStatusWork. In an activity called by an agent I call it and it is throwing the exception shown in the attachment. I was seeing thousands of these exceptions which was having a negative impact on performance, so I tried simply setting .pyStatusWork using a Property-Set in the activity that called UpdateStatus and that resolved the problem. I don't see this as a permenant solution and I would like to understand why UpdateStatus is failing; I attempted to follow the stack trace to find the problem but there was nothing to analyze past flowticketevaluate. Can you help with this?
Stack trace is attached.
***Updated by Moderator: Marissa to add SR Details***
The error can occur if an assignment is set to route to the current operator. If this is executed by the agent it will get the error because it cannot find a System id to route the assignment. In the stack trace it looks like it is trying to route to an assignment in starttakecourse. Can you check the routing for this assignment and either route to a specific workbasket or group?
Hi CarrisaW, thank you for your reply. I made the change and it did make a difference, however I am still seeing way too many exceptions in the log (200 at last count). The stack trace is the same with the only change being this at the top:
2016-12-19 21:40:17,577 [ PegaRULES-Batch-2] [ STANDARD] [ ] [gaAcademyFW:01.01.02] ( FlowProblems.Work_.Action) ERROR - Problem flow abort due to system flow FlowProblems being the issue
com.pega.pegarules.pub.PRAppRuntimeException: The flow StartTakeCourse had a problem on step Assignment1 of: Unable to open assigned's Data-Admin-WorkBasket record System.
Hi CarissaW, the error behind this is too complex to continue using PDN as a vehicle to resolve it. I will be opening an SR with GCS. Thanks for your help - your questions caused me to realize that there is more to this error than just UpdateStatus.