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

Activity can't find function err: "No suitable instance found"

SA-42993

Summary



The application encounters the following "No suitable instance found" error whenever it attempts to use an activity that refers to the "contains" function.


Error Messages



Invalid expression or reference: No suitable instance found [seeking] @(null:null).contains(String,String) [candidate functions are] Rule-Utility-Function @.contains(Param.CaptureAgent,"<IFRAME")


Steps to Reproduce

  1. Launch the portal.
  2. Enter search criteria.
  3. Click on Search Button.
  4. Observe the error.

Root Cause

At the time of first use, the activity was assembled and the function was not available, so the error got stored in the assembly of the activity.

Subsequent use of the activity reused the old assembly which merely displayed the error, even though by that time the function was available.

Resolution


Perform the following local-change steps:
  1. Use the revalidate-and-save tool to refresh the assembly of the activity.
  2. Avoid calling the activity simultaneously while importing the activity and function, such as by SLA processes, since such usage after the activity has been stored but before the function library has been built can create this state.

Published December 5, 2017 - 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