Unable to Discard 'Report Definition' rule
Error occurs and unable to discard and delete a circumstanced report definition rule.
When discarding the rule using Bulk actions, the process executes indefinitely.
ERROR: duplicate key value violates unique constraint "x_work_pk" The following error is observed in the Tracer :
The page or property pyCirmDefIndexPage.pxObjClass is unmodifiable. Calling method: com.pega.pegarules.data.internal.clipboard.ClipboardPropertyImpl.setValue(Object) Details: property is reserved. CurrentValue: Index-CircumstanceDefinition DesiredValue: X-Work-Title
Steps to Reproduce
- Circumstance the pyGetAllAttachments report definition on property
- Delete the rule.
A defect in Pegasystems’ code or rules.
In the saveCircumstanceIndex activity, in the Rule- class's first step, the '.' is replaced with an empty string (using the expression, @replaceAll(primary.pyCircumstanceProp, ".", "")). In this scenario, 'pyWorkPage.pxObjClass' changes to 'pyWorkPagepxObjClass'.
In the second step, the pzRestrictedFromCircumstanceIndex decision table is used to check the circumstanced property for the reserved property. However, though the pxObjClass decision table is present, the reserved property is skipped because it is pyWorkPagepxObjClass (in this case). Hence, index is attempted on the reserved property and it failed.