Posted: 3 Dec 2015 18:04 EST Last activity: 3 Dec 2015 19:50 EST
rule does not exist or not in rule set on Submit
I have a section where I am referring to an activity in its derived class.I can browse to the activity in the designer from the section UI action tabn and it does exist in the ruleset.When I try to submit,I get the below error:
I have tried the below:
(1) Checked in the code,logged off and logged back ,but error still persists
(2) As the section was in a different branch,I even created a copy of the activity in the branchruleset.Does not make any difference
As per your 2nd point I guess Section rule and Activity rule (referenced in Section) are in two different branches. If you are using Pega7 and 'Ruleset Validation' for the RuleSets, then try adding the Activity branch ruleset as a pre-requisite of Section branch ruleset OR check the order of these branches in application rule.
Prem, did you delete the activity from other branch after re-creating in section's branch ruleset? If you did this and still facing the issue, look at ruleset stack and go through ruleset pre-requisites. I know these kind of issues are annoying and tricky, especially when it allows you to choose a rule but on save throws error (both the actions being at design time) !!!
Thank you for your response.Just to clarify,I am working on a single branch created from the application ruleset.The activity is a shared one used across the application so I cannot delete it.So I ended up creating a copy using "Save As" to my current branch ruleset which also has the section changes as well. As both the section and activity are in the same branch rule set,does prerequisites really matter ? I will have a look at your suggestion as well.