yesterday
Hi everyone,
I’ve encountered a strange and reproducible behavior in Blue Prism where the InStr() function — and even the Utility - Strings - InStr() → Contains action — do not return correct results until I manually open the Data Item or the Collection cell that holds the string value.
It appears as if Blue Prism only initializes or type-casts the value once it’s been opened in the Debug view.
Env:
Blue Prism version: 7.3.0
All variables are of type Text
Example:
TempName: JonDoe Maximus
Col_TempName: JonDoe
Decision:
InStr([TempName], [Col_TempName]) > 0
Result is False!
When i Click on the Decision Stage and Click on Excecute Value (in new Window) --> Answer is True.
To make sure both sides are Strings, I even created a temporary Data Item [Col_TempName] (Type: Text) and assigned it beforehand.
InStr(Lower("" & [TempName]); Lower("" & [Col_TempName])) > 0
and
Utility – Strings → InStr
Text: [TempName]
Substring: [Col_TempName]
Start Pos: 1
Search Methode: Text and Binary both same Result.
It seems like Blue Prism isn’t initializing or refreshing the internal value until it’s manually accessed.
Thanks in advance for any insights or confirmation from the community or Blue Prism engineers.
sry for Text Style dont know how this happend 🙂