Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

  1. Log in to the application
  2. Create an agent activity and a function with a parameter
  3. 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:
  1. Regenerate the function and Regenerate the library from the Designer studio
  2. Regenerate the activity rule, from SMA since this is production system
  3. Navigate to SMA > Advances > Virtual Rule Table Cache Management
  4. In virtual Key section - RULE-OBJ-ACTIVITY : !SomeActivity
  5. Click on virtual table cache detail, this will show you list of candidates
  6. Click on reassemble Candidates. This regenerates the rule which can be verified through pzinskey


 

Published August 24, 2018 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us