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
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