cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

String Find Function Error

Former Member
0 Likes
2,926

Hi!

I have a Find Function (.Find()) in my code without parameter length, only the substring and the position value like this: .Find( 3, 4). I saw on the SDK documentation that it's possible to make this function without the length. Function returns what I want, but my problem is that an error appears in the Front End: "String Find Function: Importing parameter Length is not valid.". How can I remove this message or fix this error?

Thank you so much.

Eduard

View Entire Topic
anant_acharya
Product and Topic Expert
Product and Topic Expert
0 Likes

Dear Eduard,

Usually this error comes, when you have defined a string parameter length which is exceeding the provided length.

Resolution -

Kindly debug your customer code /action to fix this issue.

Please refer the help documentation for more details.

7.2.6.4 Built-In Functions for Strings ( Scroll down)

Description Searches from left to right and returns the position of a substring in a string. Optionally, you can define a search area by specifying the start position only or by specifying the start position as well as the length of the search area. If no substring is found, the function returns the value "-1".

The function returns the value “-1” and raises a message if the system encounters one of the following issues:
● The substring is empty (error message)
● The start position is not within the length of the string (error
message)
● The length succeeds the length of the string (error mess

Kindly check this from your end and confirm.

Regards
Anant

samirv
Participant
0 Likes

Hi Anant,

Same as the user who asked this question, the length was not provided in the import parameter so how can the length be invalid if it was not provided in the first place?  Please clarify.  Thanks,