Support Article
UnresolvedAssemblyError on calling a function using an activity
SA-52433
Summary
UnresolvedAssemblyError on calling a function using an activity.
Error Messages
com.pega.pegarules.pub.generator.UnresolvedAssemblyError: ** 2057730726§DownloadFilesViaSFTP§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 = GCAPFW library = GCAPFWUtils functionName = DownloadFilesViaSFTP parameters = [ Item: Param.Hostname Pega type = text Java data type = String, Item: Param.Username Pega type = text Java data type = String, Item: Param.Pswd Pega type = text Java data type = String, Item: Param.PortNumber Pega type = integer Java data type = int, Item: Param.RemoteDirectory Pega type = text Java data type = String, Item: Param.LocalFilePath Pega type = text Java data type = String, Item: Param.FileMask Pega type = text Java data type = String] @(GCAPFW:GCAPFWUtils).DownloadFilesViaSFTP(Param.Hostname,Param.Username,Param.Pswd,Param.PortNumber,Param.RemoteDirectory,Param.LocalFilePath,Param.FileMask) at com.pega.pegarules.priv.FUAUtil.throwUnresolvedAssemblyError(FUAUtil.java:423) at com.pegarules.generated.activity.ra_action_downloadfileviasftp_ef08c58f1d35e4a29ab4d1f4845c0e1f.step3_circum0(ra_action_downloadfileviasftp_ef08c58f1d35e4a29ab4d1f4845c0e1f.java:347)
Steps to Reproduce
- Log in to the application
- Create an agent activity and a function with a parameter
- Call the function in the agent activity
Root Cause
Bad assembly of the Activity rule.
Resolution
Perform the following local-change on the node where bad assembled class is present:- Regenerate the function and Regenerate the library from the Designer studio
- Regenerate the activity rule, from SMA since this is production system
- Navigate to SMA > Advances > Virtual Rule Table Cache Management
- In virtual Key section - RULE-OBJ-ACTIVITY : !SomeActivity
- Click on virtual table cache detail, this will show you list of candidates
- Click on reassemble Candidates. This regenerates the rule which can be verified through pzinskey
Published August 24, 2018 - 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.