Support Article
AuthorizationException trying to access rules in certain classes
SA-45858
Summary
The user upgraded from PRPC 6.3 SP1 to Pega 7.2.2.
Prior to the upgrade, some classes were deleted from the old database as the user thought they were no longer being used.
Afterwards, they found out there were still rules associated with those classes so they imported the classes but errors still occurred when trying to open the rules and at runtime.
The user also tried deleting the class and recreating it in Pega 7.
Error Messages
Error in Obj-Open-By-Handle
com.pega.pegarules.pub.database.AuthorizationException: You are not authorized to open instance RULE-OBJ-ACTIVITY ORG-ENTERPRISE-DATA-INTERFACES-ACTIVITYNAME #20170911T154349.489 GMT
When processing flow action in application getting error:
The Flow Action post-processing activity PostChecklist failed: Error: You lack access required to execute Rule-Obj-Activity.activityName
Steps to Reproduce
Delete class rules from database prior to upgrade.
Root Cause
An issue in the custom application code or rules where class rules were deleted directly from the database but rules associated with those classes were still in the system and being referenced.
Resolution
Perform the following steps to resolve the issue:
- Cleared the conclusion cache from memory and the database using the System Management Application (SMA).
- In SMA, navigate to Advanced > Conclusion Cache
- Click 'Clear Conclusion Cache in Memory'
- Click 'Clear Conclusion Cache in Database'
- Restarted the servers.
Published November 7, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.