Topic "returning non-zero code even though FTP was successful"

Author Message
WHB_BHS
[View user's profile]

Joined: 2012-04-03
Posts: 3
Location: Birmingham, AL
we have an ".bat" file that FTPs files to an outside vendor. after running winscp to FTP the files the script checks %ERRORLEVEL% to make sure the FTP was successful. %ERRORLEVEL% is valued to '1' so the script abends, but when you check with the vendor, the files have successfully been sent. can anyone explain? Here is a portion of the logfile:
Binary transfer mode selected.
Checking existence of file.
Type: SSH_FXP_LSTAT, Size: 52, Number: 263
Type: SSH_FXP_STATUS, Size: 29, Number: 263
Status/error code: 2
Checking existence of partially transfered file.
Type: SSH_FXP_LSTAT, Size: 61, Number: 519
Type: SSH_FXP_STATUS, Size: 29, Number: 519
Status/error code: 2
Opening remote file.
Type: SSH_FXP_OPEN, Size: 77, Number: 771
Type: SSH_FXP_HANDLE, Size: 13, Number: 771
Type: SSH_FXP_WRITE, Size: 4121, Number: 1286
95 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
Type: SSH_FXP_CLOSE, Size: 13, Number: 13828
Type: SSH_FXP_STATUS, Size: 24, Number: 13318
Type: SSH_FXP_STATUS, Size: 24, Number: 13574
Type: SSH_FXP_STATUS, Size: 24, Number: 13828
Status/error code: 0
Type: SSH_FXP_RENAME, Size: 108, Number: 14098
Type: SSH_FXP_STATUS, Size: 24, Number: 14098
Status/error code: 0
Type: SSH_FXP_SETSTAT, Size: 64, Number: 1033
Type: SSH_FXP_STATUS, Size: 24, Number: 1033
Status/error code: 0
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Please post a full log file showing the problem using the latest version of WinSCP.

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.

_________________
Martin Prikryl
WHB_BHS
[View user's profile]

Joined: 2012-04-03
Posts: 3
Location: Birmingham, AL
I have attached a copy of the log file


prikryl wrote:
Please post a full log file showing the problem using the latest version of WinSCP.

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.
AMCOL_EO_extract_send.txt (10.54 KB) [Download]

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Please post a full log file showing the problem using the latest version of WinSCP.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License