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



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 Error while parsing: Exception caught attempting to invoke utility function 'MapTo.ParseTrimValue--(PublicAPI,ClipboardPage,String,String)'

Caused by: 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(
at com.pega.pegarules.integration.engine.internal.mapping.DelimitedParserBase.applyParseDetail(
at com.pega.pegarules.integration.engine.internal.mapping.DelimitedParserBase.parse(
... 69 more

Caused by: java.lang.NoSuchMethodException: com.pegarules.generated.cme_mapto.ParseTrimValue--(PublicAPI,ClipboardPage,String,String)(,, java.lang.String, java.lang.String)
at java.lang.Class.getMethod(
at com.pega.pegarules.integration.engine.internal.util.UtilityFunctionWrapper.getMapToUtilityMethod(
at com.pega.pegarules.integration.engine.internal.util.UtilityFunctionWrapper.invokeUtilityFunctionInbound(
... 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.


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