Our customer reported that declare expression rule instances are not found in Dev Studio, shown as below. In this post, I will share a quick workaround to fix this issue.
The root cause is that pyMethodStatus property is not exposed in rules.pr4_rule_declare_expression table. This issue is reproducible only when your environment does not have UDF installed. When you view rule instances list, Report Definition pyInstanceList in Rule- class is executed and throws an error since UDF PR_READ_FROM_STREAM can't be used. If you perform upgrade, UDF may be still present from old installation and the issue may not be found. But if you newly set up the latest version, you may face this issue as starting with 8.8, UDF is not installed by default.
The issue will be fixed in the future release, possibly Infinity '23. In the meantime, here is a quick workaround. In your operator preferences, enable Diagnostics as below. This is not system-wide settings, but at least Declare Expression rule instances will become visible per developer.
Hope this helps.
***Edited by Moderator: Pooja Gadige to add capability tags***
Just out of curiousity, I checked my customer's environment (Pega 8.2), but we were able to view Declare Expression rule instances without any issue. They did not install UDF. Which version of Pega Platform is this?
This issue is found from Pega 8.3 to the latest version (8.8). Prior to Pega 8.3, Rule-Declare-Expressions class was mapped to pr4_rule table where pyMethodStatus property is already exposed. From Pega 8.3 onwards, the mapping table was changed to pr4_rule_declare_expression where pyMethodStatus property is not exposed. This will be exposed in the future release.