Using the function IsInPageList but not finding items in the results when they contain char /. Is this wrong?

Hi all:

Hope anyone has gone through this before. I came across a validation logic for a property where the value selected is searched and compared to the results of a data page using the IsInPageList utility function. It works fine for the items that do not have special chars like / or -. Why is there a problem with these chars as they are contained within a string and as such (not being an escape or anything)? Also, tried comparing two strings that contained such chars using the equals function and it worked flawlessly. Thank you for shedding some light. Regards,

Update: Reviewed other items in the list that also contained the / char, and where correctly identified. It seems to be happening with certain results where the comparison is not taking place correctly. Has anyone faced this behavior before? Whas it something with the function itself or with the report definition?

The case is being evaluated by the Cloud support team.

@GerardoS

Even I am facing this issue, posted the query on community as well. I have Hypen as character and its throwing error as

Invalid expression or reference: Operation “-” is not permitted on types: includedpage and includedpage
Invalid expression or reference: No suitable instance found

Hi @GerardoS,

Could you please share your Support Case ID so we may track this for you?

Thank you!

@MarissaRogers Hi, The case ID is: INC-175261. The problem was a combination of the results from the report and a trim that was happening when the value was being set to the property and data entry. This caused the validation activity to compare with a string that had an extra space for the specific items. The function was perfect. Hope this helps anyone with similar issue to pin point the problem. Regards,

@varnikag Will this happen with all the items?

Thanks @GerardoS for updating us with not only the Support Case ID but with the resolution and marking it as the Accepted Solution to help others who may have the same question in the future.

I have also linked this post to your Support Case with our Engineers.

Thanks again!

@GerardoS

NO I have to find for one of the Values in Pagelist, but that contains hyphen and hence throwing the error as

Invalid expression or reference: Operation “-” is not permitted on types: includedpage and …