Support Article
Error on invoking a custom function by invoking the flow
Summary
User creates a new custom function in an existing library in the development environment. After performing testing through the System Integration Testing (SIT) and User Acceptance Testing (UAT) environments, the user imports the function to the production environment and extracts the library using the System Management Application (SMA) on all the nodes. However, assembly error occurs at runtime on invoking the function by invoking the flow.
Error Messages
Error Message : pega.pegarules.pub.generator.UnresolvedAssemblyError: Invalid expression or reference: No candidates found [possible function name, ruleset/version or number of parameter problem]
Steps to Reproduce
- Create a custom function in the lower environment
- Import the function to the production environment
- Extract the library
- Run the flow that references the function
Root Cause
A defect in Pegasystems’ code or rules. Assemblies are created with throwUnresolvedAssembyError since the shorthand notation references to functions which cannot be resolved at the assembly time. This results in the polluted assemblies. A function and/or library is added on one node and the assembly happens on some other node. The other node is not related to the new function.
Resolution
- Apply HFix-54329
- Restart the nodes
Published August 15, 2019 - 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.