Hello,
This is very strange as we have never heard or seen such type of behaviour before. However, let us investigate.
Is it possible due to some reason the Rename Files command taking little long to rename the file and meanwhile the task executed Copy Files command and hence the error.
To check this you can insert 'Loop while File does not exists' command after Rename Files command and inside loop block you can log the status say 'File not renamed' in a text file. Once, the file would be renamed the task will come out of the loop to execute the next statements in task after 'End Loop'.
You can then log the status as 'File renamed' then put 'Copy Files' command.
The text format of task would appear something like this,
Rename Files "$LocalPath$\$FileName$.$Extension$" to "$FileName$_DEL_NOTE.$Extension$"
Loop While File Does Not Exist("$LocalPath$\$FileName$_DEL_NOTE.$Extension$ "")
Log to File: File isn't renamed. in "C:\temp.txt"
End Loop
Log to File: File is now renamed. in "C:\temp.txt"
Copy Files "$LocalPath$\$FileName$_DEL_NOTE.$Extension$" to "$NetworkPath$\$SellingYear$\$SellingSeason$\"
Also, if you could give us the path you have specified in variable, $LocalPath$ then we can reproduce the similar scenario at our end and could suggest the viable solution.
Hope that helps.
|