Support Article

Rule gets corrupted while saving

SA-33475

Summary



When checking in a rule, the rule becomes corrupted. As a result, the rule form does not display. However, on searching for the rule name in the Search bar, the rule displays and is checked out. Hence, unable to open or modify the rule in that particular ruleset version and error occurs.


Error Messages



Status fail
Message There has been an issue; please consult your system administrator"

com.pega.pegarules.pub.clipboard.InvalidReferenceException: The reference .pyDelegationsForRuleType(@baseclass) is not valid.  Reason: unexpected character '@' at position 26, expected subscript 
at com.pega.pegarules.data.internal.clipboard.PropertyReferenceImpl.initialize(PropertyReferenceImpl.java:3013) 
at com.pega.pegarules.data.internal.clipboard.PropertyReferencePoolImpl.get(PropertyReferencePoolImpl.java:99) 
at com.pega.pegarules.data.internal.clipboard.PropertyReferenceImpl.subReference(PropertyReferenceImpl.java:3625) 
at com.pega.pegarules.data.internal.clipboard.PropertyReferenceImpl.removeLastProperty(PropertyReferenceImpl.java:2800) 
at com.pega.pegarules.data.internal.clipboard.PropertyReferenceImpl.initialize(PropertyReferenceImpl.java:3198) 
at com.pega.pegarules.data.internal.clipboard.PropertyReferencePoolImpl.get(PropertyReferencePoolImpl.java:122) 
at com.pega.pegarules.data.internal.clipboard.PropertyReferencePoolImpl$StaticHelper.get(PropertyReferencePoolImpl.java:165) 
at com.pega.pegarules.data.external.clipboard.PropertyReferencePool.get(PropertyReferencePool.java:62) 
at com.pega.pegarules.session.internal.mgmt.Executable.getAnyValueViaPropRef(Executable.java:10046) 
at com.pega.pegarules.session.internal.mgmt.Executable.getStringValueViaPropRef(Executable.java:10191) 
at com.pegarules.generated.activity.ra_action_wbtoolbarddsettings_9a469343ff55b48369ec8575895d72dc.step12_circum0(ra_action_wbtoolbarddsettings_9a469343ff55b48369ec8575895d72dc.java:1386)
at com.pegarules.generated.activity.ra_action_wbtoolbarddsettings_9a469343ff55b48369ec8575895d72dc.perform(ra_action_wbtoolbarddsettings_9a469343ff55b48369ec8575895d72dc.java:258) 
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3505) 
at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:10563)



Steps to Reproduce



Not Applicable


Root Cause



A defect in Pegasystems’ code or rules.


Resolution



Perform the following local-change:
  1. Private-Edit the WBToolBarDDSettings activity. 
  2. Expand the Property set (12th step). 
  3. Modify the local.ruleType property value to @(Pega-RULES:String).replaceAll(@(Pega-RULES:String).replaceAll(.pxObjClass,'-',""),'@',"").


     
  4. Save the activity.
  5. Open the activity.

Published February 8, 2017 - Updated October 6, 2018


100% found this useful

Have a question? Get answers now.

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