AuthorizationException trying to access rules in certain classes
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 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.
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.
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.