Windows version: Windows XP SP3
SFTP protocol version: SFTP-4
SFTP Server: WS_FTP 18.104.22.168
Authentication: Both key and password
Error Message: Cannot overwrite remote file '/users/home/generic_filename.pdf.filepart'.
Press 'Delete' to delete the file and create new one instead of overwriting it.
General failure (server should provide error description).
Error code: 4
Error message from server: Failed to open local file
Request code: 3
I have a VBScript that runs every hour and uploads pdf files. 80% of the time, it works with no problems. The rest of the time it fails on a random one of the files with the above error message. After that happens, the script will not upload any more files behind the failed file until the .filepart of the offending file is deleted on the server.
The command line used: winscp.exe /script="upload.txt" /log="log.xml"
option batch abort
option confirm off
put C:\Local_Directory\*.pdf /users/home/ -delete -nopreservetime
I have had WS_FTP Support look at the server side of the transfer and they say it rests on the client side. I am at a loss as to the cause considering that it doesn't always happen. Plus, I've never been able to recreate the error when using the GUI. Any help would be appreciated, and I can provide the xml log generated from the script, as well as the server log. I can't post them here, but I would be more than happy to email them to you.