Support Article
UnresolvedAssemblyError occur when calling Function Rule
SA-19690
Summary
As application is utilizing a Function rule. The function is correctly implemented and compiles without error. However, at runtime the Function fails to invoke via a DataTransform with UnresolvedAssemblyError.
Error Messages
2016-01-28 09:52:32,457 [.PRPCWorkManager : 7] [ STANDARD] [ myApp:0x.0y.0z] ( FlowProblems.Work_.Action) ERROR - Problem flow abort due to system flow FlowProblems being the issue
com.pega.pegarules.pub.PRAppRuntimeException: The flow SendToCreditDepartment had a problem on step Integrator2 of: com.pega.pegarules.pub.generator.UnresolvedAssemblyError: ** 2001449583§a_function§PegaEL-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 = a_ruleset library = a_Library functionName = a_function parameters = [ Item: param.PackageName Pega type = text Java data type = String] @(a_ruleset:a_Library).a_function(param.PackageName)
From: (B1DB4FA2881D8843B0A39D2E340F51056)
at com.pegarules.generated.activity.ra_action_problemflowthrowexception_0287af95244464eee8a78ef088ca28e4.step3_circum0(ra_action_problemflowthrowexception_0287af95244464eee8a78ef088ca28e4.java:269)
at com.pegarules.generated.activity.ra_action_problemflowthrowexception_0287af95244464eee8a78ef088ca28e4.perform(ra_action_problemflowthrowexception_0287af95244464eee8a78ef088ca28e4.java:103)
at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:3500)
at com.pegarules.generated.flow.ra_action_flowproblems_082e122ca3ac7453c435359f419716bd.RunTaskActivity(ra_action_flowproblems_082e122ca3ac7453c435359f419716bd.java:4811)
Steps to Reproduce
Not applicable.
Root Cause
The UnresolvedAssemblyError associated to a Function rule can be a cache related issue.
However, there is an additional known condition in which the error can occur. There are situations where the Function name signatures not normalized correctly and when that occurs, the system will unable to locate the Function rule and the error of UnresolvedAssemblyError occur will get thrown.
Resolution
To rule out any caching issue, try the Revalidate and Save operation and clear the contents in PegaTemp directory. If the issue still persists, install HFix-25979 which contains an updated version of com.pega.pegarules.integration.engine.internal.util.UtilityFunctionWrapper.java. The fix ensures the Function name signature getting normalized and located as expected.
Published February 13, 2016 - 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.