In many case, double quote except 0x22 character causes this matter. So, can you retype/replace all the double quote with 0x22 character (") in the activity?
Here is project outline. Sorry not able to share the project file since website is not allowing me.
Add an Assign Activity. Created an Array of String StrFilePath = Directory.GetFiles("Open File From Directory\TEXT FILES")
Add For Each Activity to iterate on String Array Variable. Output = currentTextFile variable which contains single file path while looping.
Add Use Browser/Application inside For Each. Indicate the Notepad application.
Application path = “C:\Windows\System32\notepad.exe”
Application Argument = currentTextFile
Selectors have been fine tuned.
So, I am providing each file path using currentTextFile variable instead of hardcoding. While I am providing any single file’s path (hardcoded) it is working fine in that scenario.
Pls debug the code step by step and find out in which activity raising the error.
or try save and reopen your project to force compilation. ensure all variables are correctly initialized and expressions are valid to avoid the compilation error.