Support Article
All ruleset versions display instead of only required versions
SA-105187
Summary
On opening a ruleset in Pega Developer Studio, all the ruleset versions in the system display instead of only the versions required for the selected ruleset.
Error Messages
Not Applicable
Steps to Reproduce
Open a ruleset.
Root Cause
According to the Trace, the SQL database query executed as Step 2 of the OpenUIDefaults activity does not use the pyRuleSetName in the Where condition. Hence, all Rule-Ruleset-Version instances are returned when the screen is built.
Example of a Problem Trace:
Multiple rows are returned for a single ruleset.
Example of a Working Trace:
Below is the criteria from the OBJ-BROWSE:
Set Select Field to .pyRuleSetName
Set Condition to IsEqual
Set Value to Primary.pyRuleSetName
Set Sort to No Sorting
Resolution
Perform the following local-change:
- Use the below API to rebuild the VTable cache.
/api/v1/nodes/all/caches/vtable/rule_types/{{pxobjclass}}/instances/{{pxinsid}}/reassemble
- Use the below parameters:
"Rule-Obj-Activity" / "!OPENUIDEFAULTS"
Published April 16, 2020 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.