Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Unable to Discard 'Report Definition' rule

SA-69009

Summary



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 Messages



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

  1. Circumstance the pyGetAllAttachments report definition on property

    pyWorkPage.pxObjClass=XXX-Work-X

     
  2. Delete the rule.


Root Cause



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.


Resolution



Apply HFix-49010.
Suggest Edit

Published January 28, 2020 - Updated December 2, 2021

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us