Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Sending file from Local to SFTP server using Execute Process Task

$
0
0

I've read a whole bunch of different forums on this but cant seem to get mine to work. I need to transfer a file from my local machine to an SFTP server using SSIS. Here is what i've already done:

  1. I downloaded WINSCP
  2. Created a saved connection in WINSCP
  3. Open up that saved connection (to verify)
  4. Copied WinSCP.exe and WinSCP.com to the SSIS project folder
  5. Create Text file with the below script.
       

option batch on
       option confirm off
       open TS_NEW
       cd C:\Users\zaccheut\Documents\Analytics Project 2018\ThoughtSpot\SSIS File
       option transfer binary
       put FCT_DC_MONTH.csv  /export/xvdb1/skynet/File_Test
       exit

  1. Opened up SSIS, created an Execute Process task
  2. Add the executable from the SSIS project folder and Argument:

I keep getting the same error message.

Since its so small, here is the error message:

Error: 0xC0029151 at Execute Process Task, 
Execute Process Task: In Executing 
"C:\Users\zaccheut\Documents\Visual Studio
 2012\Projects\Skynet Refreshes\Skynet 
 Refreshes\WinSCP.com" "/script=C:\Users\
 zaccheut\Documents\Visual Studio 2012\Projects
 \Skynet Refreshes\Skynet Refreshes\local2remote.txt" at "", 
 The process exit code was "1" while the expected was "0".


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>