I am using Excel Read Range to get a list of possible strings from an Excel worksheet. The resulting Datatable has some lines where quotation marks are added at the beginning and end of the string.
This cause a runtime error when trying to use Any function to test a particular string is in the list.
Then the assign step causes this error: “Assign: Expression Activity type ‘VisualBasicValue`1’ requires compilation in order to run. Please ensure that the workflow has been compiled.”
The error seems to be related to the quotation marks that occur - it does not happen if the datatable does not have lines 21 and 22 etc.
Any Ideas, please. This is causing a real headache in a complicated workflow
This error is not related with excel data. Double quote except 0x22 character (") causes this matter. For now, can you try to replace your expression with the following? (Or replace your double quote with " ?
Thanks @Yoichi , but the issue I have is that the original string in the excel cells does not contain the characters and then UiPath seems to add those characters in some lines when they get added to the datatable.
I have checked the strings in a HEX editor and cannot see any hidden characters in those positions, but they may be there, I guess.
But, you are correct - I copied the assign example from a forum post and the quotation marks were the wrong type.
I have tested the functionality and it now works and returns the right result even for the string in line 21.