Support Article
Open Rule By Name action does not work in Pega 7
SA-10833
Summary
While clicking on a link which is configured to open a rule by name, user getts "Failure opening the rule instance" error.
Error Messages
End user portal: Failure opening the rule instance
Tracer: Database.NotFound exception.
Steps to Reproduce
1. Create a link.
2. Configure the link with action - Open Rule By Name and provide insname of the rule to be opened.
3. Click on the link from the end user portal. Error can be seen on the screen.
Root Cause
The root cause of this problem is a defect in Pegasystems’ code/rules.
The issue is occurring because the parameter insName is missing when the WBOpen activity is called.
The wrapper activity WBOpenLaunch activity which calls WBOpen activity passes a parameter “InsName” (with captial I) whereas WBOpen expects a parameter “insName”(with small i), hence the error.
Resolution
This issue is resolved through the following local-change:
Use the Open Rule By Keys instead of Open Rule By Name on OnClick event to fix the issue.
Published June 30, 2015 - 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.