October 24, 2022, 12:07pm
I have this string, it’s quite long but this is a part of it:
Equipotential Bonding Satisfactory Yes Is there a Thermostat Cutoff Yes Equipotential Bonding Satisfactory Yes
To get the first “Yes”, I’ve used an assign -
strString.Split(“ “c)(3) (the “yes” may change to no or N/A so I thought the best option would be to get the appearance). However, when I run this, I get this error:
Any suggestions on what I’m doing wrong?
October 24, 2022, 12:28pm
Nevermind, I split the string to an array and used arrayNew(3) instead
October 24, 2022, 12:30pm
alternative: just check, if this part is in the string or if it is missing:
str.Contains("Equipotential Bonding Satisfactory Yes")
October 24, 2022, 12:43pm
It was in the string, I had a write line on the whole string before that activity. I was just after the 4th word, no idea where that error came from!
October 24, 2022, 1:35pm
Thought I’d solved it… but I’m getting the same error when I’m assigning an int to
These are my Imports to do with visual basic:
What’s going on?! Do I need to Import something else? Or update something? The new update has made UiPath such a headache
Remove all double quotes and manually enter it once and check again
October 24, 2022, 1:41pm
Without the quotes it assumes it’s a variable and can’t find it
October 24, 2022, 1:45pm
This issue is caused by double quote except
" (0x22) in Windows project. So, can you try to replace all double quote with
Please also check the following post.
In windows legacy, it seems double quote is normalized and any double quote characer is accepted. However, at this time, in windows (.net6) ,in fact, only " (0x22) is accepted to express string literal. To make matter worse, it seems to occur only compiling. (Expression validator don’t raise an alert.)
FYI, the following is sample for reproducing. The first Assign uses " 0x42 and second Assign uses “ and it fails in compiling.
Sample20221013-2.zip (2.1 KB)
You need to replace the double quotes manually after removing
October 24, 2022, 1:51pm
That’s such an odd change to make to UiPath… it’s worked but my keyboard only has " which don’t work, so I’m having to copy and paste the new quotes. Do you know if this will change in future updates?
October 24, 2022, 1:57pm
I’m not sure when it will be fixed. But I hope UiPath guys handles this soon because there are many people face same issue.
October 27, 2022, 1:58pm
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.