Support Article
AuthorizationException when accessing property rules
SA-46000
Summary
When importing several property rules and a report definition rule into an environment, the built on class rule does not exist in the environment or in the imported RAP file. Unable to open the property rules and report definition rules after generating a new RAP file and importing the class instance.
Error Messages
Error in Obj-Open-By-Handle
com.pega.pegarules.pub.database.AuthorizationException: You are not authorized to open instance RULE-OBJ-PROPERTY YOURCLASSNAME STATUSID #20171017T155418.103 GMT
at com.pega.pegarules.pub.database.AuthorizationException.createCannotOpenException(AuthorizationException.java:206)
at com.pega.pegarules.data.internal.access.DatabaseImpl.open(DatabaseImpl.java:4489)
at com.pega.pegarules.pub.runtime.AbstractActivity.objOpenByHandle(AbstractActivity.java:121)
Steps to Reproduce
- Import a RAP file which includes rules but not the built on class rule.
- Import a RAP which includes the built on class rule.
Root Cause
A defect or configuration issue in the operating environment. Although the rules are now valid, the conclusion cache still included invalid entries.
Resolution
Perform the following steps to resolve the issue:
- Clear 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'.
- Restart the servers.
Published December 6, 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.