Filetransfer successful but File does not exist on remote server
I'm upload a bunch of XML files to an FTP Server using a batch file that calls WinSCP, which uses as script file to upload all XML files from a local folder to the SFTP target location. This happens once every hour and usually goes fine, however we've now come across several cases where the files never arrived on the SFTP target.
I'm using
However, in these cases, the log does not show any error, it shows that the file has been uploaded successfully. Here's an excerpt of the log from a file I know has not been transferred succesfully:
I've had an upload where only 13 out of 58 files were transmitted, however no error appears in the log file.
Is there any way to verify the transmission? Could there be a setting I'm missing that causes this behaviour?
Files are typically around 1-3KB in size, an upload can contain anywhere from 20 to 200 files.
I'm using
/log
to create a logfile of the uploads, and a loop to restart the upload in case of an error.
However, in these cases, the log does not show any error, it shows that the file has been uploaded successfully. Here's an excerpt of the log from a file I know has not been transferred succesfully:
. 2020-04-30 12:30:02.790 File: 'File_Name_123.xml' [2020-04-30T10:15:30.867Z] [337] . 2020-04-30 12:30:02.791 Copying "File_Name_123.xml" to remote directory started. . 2020-04-30 12:30:02.791 Binary transfer mode selected. . 2020-04-30 12:30:02.792 Opening remote file. > 2020-04-30 12:30:02.792 Type: SSH_FXP_OPEN, Size: 52, Number: 45059 < 2020-04-30 12:30:02.803 Type: SSH_FXP_HANDLE, Size: 13, Number: 45059 > 2020-04-30 12:30:02.803 Type: SSH_FXP_WRITE, Size: 362, Number: 45574 > 2020-04-30 12:30:02.804 Type: SSH_FXP_CLOSE, Size: 13, Number: 45828 > 2020-04-30 12:30:02.804 Type: SSH_FXP_SETSTAT, Size: 48, Number: 45321 < 2020-04-30 12:30:02.816 Type: SSH_FXP_STATUS, Size: 24, Number: 45574 < 2020-04-30 12:30:02.816 Status code: 0 < 2020-04-30 12:30:02.817 Type: SSH_FXP_STATUS, Size: 24, Number: 45828 < 2020-04-30 12:30:02.817 Status code: 0 . 2020-04-30 12:30:02.817 Preserving timestamp [2020-04-30T10:15:30.000Z] < 2020-04-30 12:30:02.827 Type: SSH_FXP_STATUS, Size: 24, Number: 45321 < 2020-04-30 12:30:02.828 Status code: 0 . 2020-04-30 12:30:02.828 Transfer done: 'File_Name_123.xml' => '/in/File_Name_123.xml' [337]
Is there any way to verify the transmission? Could there be a setting I'm missing that causes this behaviour?
Files are typically around 1-3KB in size, an upload can contain anywhere from 20 to 200 files.