Can ANYONE PLEASE guide me how to resolve this error?
I have tried to debug this and see that string Object which contains the list of all the files has an additional value than what is present actually in the file and the additional file appears to start with ~ sign. I have tried to kill the word processes through ui path also manually from task manager.
It has the complete file name ( including the path), if you see my screenshot above in the watch section, the WIP_filelist has all the list of files and I am reading it one by one using file variable.
The strange thing is when there are 4 documents in the folder I can see that the Variable WIP_filelist has 5 values one of them starts with tilde sign and the error is because of that last file.
then use a IF condition like this in side the FOR EACH activity like this NOT item.ToString.Contains(“~”)
if true it goes to THEN part where we can keep our sequence of activities