Posted: 17 Jun 2019 6:46 EDT Last activity: 18 Jun 2019 9:56 EDT
pxForceCaseClose doesn't work on last subcase
We are having some issues regarding the usage of pxForceCaseClose in an activity. We use pxForceCaseClose function to forcibly close all the child case of the specific parent case in the whole case object. The steps we have are as follows:
The parent case is being created along with child cases through a Service-SOAP of Pega.The child cases can have two or more child cases.
Our system needs to be able to force close all the child cases to "Resolved-Withdrawn" status.
On the first try, all cases have been closed successfully. At some point, we can create another batch of child cases on the same level as where it was withdrawn. Therefore, we have now, 2 or more "Resolved-Withdrawn" child cases and two or more "Pending-X" child cases.
We attempt to force close all the child cases of the parent case the second time around.
Unfortunately, it doesn't force close all child cases. It keeps on retaining the last child case when we do pxForceCaseClose function. We've tried on two, three, four, and even ten child cases but it always leaves out one child case still in "Pending-X".
What can cause this issue and how can we be able to address this?
***Edited by Moderator: Lochan to update platform capability tags***
The Tracer tells some errors such as "Trying to save an invalid page: The cover open count is incorrect; it is -1" and in the process, it shows that it resolved, thus the last step being picked up. Upon checking the whole case object, it's only the last child case that is not closing.
Posted: 2 years ago
Posted: 18 Jun 2019 9:56 EDT
Nishitha Chintala (chinn2)
Senior Cloud Development Engineer