UnresolvedAssemblyErrors shut down agents
SummaryAfter skimming and migrating a set of rulesets, agents encounter UnresolvedAssemblyErrors and shut down.
Error MessagesBatch activity "<Your_Activity>" threw:
com.pega.pegarules.pub.generator.UnresolvedAssemblyError: Invalid expression or reference: No candidates found [possible function name, ruleset/version or number of parameter problem]
ERROR - Agent [<Your_Agent>] activity [<Your_Activity>] queue number  disabled due to execution errors ErrorMsg: ** <Your_Function> -InvalidExpression
No candidates found [possible function name, ruleset/version or number of parameter problem] for Rule-Utility-Function in ruleset list <null> expected since isEditing is false ruleset = <Your_Ruleset> library = <Your_Library> functionName = <Your_Function> parameters = [ ]
Steps to ReproduceMigrate the skimmed rules.
Root CauseA defect or configuration issue in the operating environment.The function in the error messages did not compile correctly. This resulted in an error which had to display when the First Use Assembly (FUA) of the migrated rules ran. Hence, the agents shut down.
ResolutionPerform the following local-change:Revalidate and save the function (in question).
Published January 22, 2019 — Updated April 12, 2019