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
- Launch the portal.
- Enter search criteria.
- Click on Search Button.
- 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:
- Use the revalidate-and-save tool to refresh the assembly of the activity.
- 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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.