I amusing Excel.Application.Scope activity but it crashes when using a file path that has an embedded blank.
When I hard code the path and file name the activity works fine. However, when I pass it as a string variable it fails. I have tried concatenating chr(34) to the front and back of the variable string to see if that gets around the issue, but that doesn’t work either.
Fine
if the string variable is
str_input = “C:\Temp_MJ\UiPath Testing\Ariba\Output\downloadFiles.xlsx”
then mentioning this variable in EXCEL APPLICATION SCOPE as a file path input would work actually, if that file path is correct
may i know what was the error you were getting may be with a screenshot if possible
Cheers @Mr_J
no difference
BTW (when I attach the file to an outlook message it doesn’t work either unless I hard code the file path (it is the exact same path)
Here is an screen shot of the code with the trim added
However, if I use an assign block with the hard-code text of the path (with the space) the scope activity does work. So somehow the config dictionary is introducing an invalid character. Please note that this same config entry was used in other locations of the code and all have been working successfully. For example, another workflow in the process creates the file and then several other workflows update it and none of them had the issue. None of the other process used the application scope - they simply used “Write Range - the non Excel application scope version” that is why I thought this is an app scope issue.
I will close this item as it appears the workflow itself has some sort of corruption causing the issue. Thank you very much for you help @lakshman and @Palaniyappan