Exit code 250477278

Advertisement

roonz
Joined:
Posts:
3
Location:
Sydney

Exit code 250477278

Problem with scripting in WinSCP v 4.2.4 Beta. Last night I received Exit Code 250477278. What causes this? The one script is run from SSIS and was working fine for a number of days. When I recieved this error I tried running the batch file that is used to launch the script and it returned the same error. We also received "false positives" from another process at the same time. i.e. was reporting success when in fact it was failing.

Process Exit Code 250477278.
O/S is WIN2k3 64BIT.
Script file below.

# Automatically answer all prompts so as not to stall
# the script on errors
option batch on
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Connect using a password
open UID:PWD@ip:PORT -hostkey="blah"
# Change remote directory
cd /Home/Artis/Incoming_from_Artis/Crawl_Data
# Force binary mode transfer because if we use ascii, the pading and spaces are removed. We lose pretty print on files
option transfer binary
# Upload file to the remote directory
put -preservetime "C:\Program Files\Artis Group\Weather Channel ETL\Rawfiles\Outputs\Outgoing_To_TWC\Crawl_Data\*.*"
ls

#now put up the flag file
cd /Home/Artis/Incoming_from_Artis/Misc
put -preservetime "C:\Program Files\Artis Group\Weather Channel ETL\Rawfiles\Outputs\Outgoing_To_TWC\Crawl_DataFlag.txt"


# Disconnect
close
# Exit WinSCP
exit

BATCH FILE
rem @ECHO OFF
REM Comments: Add /console to see the console if debugging
date /t > "C:\Program Files\Artis Group\Weather Channel ETL\Rawfiles\Outputs\Outgoing_To_TWC\Crawl_DataFlag.txt"
time /t >> "C:\Program Files\Artis Group\Weather Channel ETL\Rawfiles\Outputs\Outgoing_To_TWC\Crawl_DataFlag.txt"
dir "C:\Program Files\Artis Group\Weather Channel ETL\Rawfiles\Outputs\Outgoing_To_TWC\Crawl_data" >> "C:\Program Files\Artis Group\Weather Channel ETL\Rawfiles\Outputs\Outgoing_To_TWC\Crawl_DataFlag.txt"
"C:\Program Files (x86)\WinSCP\winscp.exe" /console /script=C:\TWC\SFTP1CrawlScript.txt /log=C:\TWC\winscp_CRAWL_SFTP1.TXT
rem echo %ERRORLEVEL% > C:\TWC\ERROR.LOG
rem pause
rem cls
rem exit

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: Exit code 250477278

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Reeceived same error

Can you send me an email, so I can send you back a debug version of WinSCP to track the problem? Please include link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.

Reply with quote

Advertisement

You can post new topics in this forum