Execute Process Task in SSIS package
I have read the post on using WINSCP within a SSIS package and am still having issues. I created a SSIS package on my local development environment that uploads a .txt file via WINSCP and it works fine. The script file:
option batch on
option confirm off
open sftp://<username>:<pwd>@<remoteserver>:22 -hostkey="hostkey"
cd incoming
put *.txt
close
bye
When I deploy to another server, correctly modify my package's configuration settings, then manually execute the package, my Execute Process Task fails with message "The proces exit code was 1, while the expected was 0.". I was able to use the WINSCP client to connect and upload the file, plus I was able to execute the script that sftp's the file successfully through the command line. Does anyone know why this would happen? The Execute Process Task properties such as "Executable", "Arguments", and "WorkingDirectory" are correct. Any help would be very much appreciated as I am at a loss.
option batch on
option confirm off
open sftp://<username>:<pwd>@<remoteserver>:22 -hostkey="hostkey"
cd incoming
put *.txt
close
bye
When I deploy to another server, correctly modify my package's configuration settings, then manually execute the package, my Execute Process Task fails with message "The proces exit code was 1, while the expected was 0.". I was able to use the WINSCP client to connect and upload the file, plus I was able to execute the script that sftp's the file successfully through the command line. Does anyone know why this would happen? The Execute Process Task properties such as "Executable", "Arguments", and "WorkingDirectory" are correct. Any help would be very much appreciated as I am at a loss.