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

Error when invoking MapTo Function

SA-15905

Summary



After creating a MapTo library and function for use with a Service File rule, when testing the service - the simulation results return an error message stating that the function rule cannot be found.


Error Messages



Error Message
com.pega.pegarules.pub.PRException: Error while parsing: Exception caught attempting to invoke utility function 'MapTo.ParseTrimValue--(PublicAPI,ClipboardPage,String,String)'
......

Caused by: com.pega.pegarules.pub.PRException: Exception caught attempting to invoke utility function 'MapTo.ParseTrimValue--(PublicAPI,ClipboardPage,String,String)'
From: (unknown)
at com.pega.pegarules.integration.engine.internal.util.UtilityFunctionWrapper.invokeUtilityFunctionInbound(UtilityFunctionWrapper.java:220)
at com.pega.pegarules.integration.engine.internal.mapping.DelimitedParserBase.applyParseDetail(DelimitedParserBase.java:562)
at com.pega.pegarules.integration.engine.internal.mapping.DelimitedParserBase.parse(DelimitedParserBase.java:354)
... 69 more

Caused by: java.lang.NoSuchMethodException: com.pegarules.generated.cme_mapto.ParseTrimValue--(PublicAPI,ClipboardPage,String,String)(com.pega.pegarules.pub.runtime.PublicAPI, com.pega.pegarules.pub.clipboard.ClipboardPage, java.lang.String, java.lang.String)
at java.lang.Class.getMethod(Class.java:1665)
at com.pega.pegarules.integration.engine.internal.util.UtilityFunctionWrapper.getMapToUtilityMethod(UtilityFunctionWrapper.java:310)
at com.pega.pegarules.integration.engine.internal.util.UtilityFunctionWrapper.invokeUtilityFunctionInbound(UtilityFunctionWrapper.java:211)
... 71 more


Steps to Reproduce

  1. Create a “MapTo” library 
  2. Create a new function  in “MapTo” library to be used in a Parse Delimited rule
  3. Create a parse delimited rule to use this new function
  4. Create a service file that uses the parse delimited
  5. Run the service rule and review the Service Simulation Results


Root Cause



A defect in Pegasystems’ code or rules.

Resolution



Apply HFix-24383.
Suggest Edit

Published January 31, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

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