Topic "WinSCP, SSIS and SQL Job"

Author Message
jhong

Guest


I have the the executing of WinSCP as a Execute Process task in my SSIS project. Works perfectly as I have the WinSCP executable executing commands from a script file. Again works perfectly. However when I run the SSIS package from a SQL job I get the below error. Has anyone experienced this before or know what the issue is? Thanks in advance.


Description: In Executing "C:\Program Files (x86)\WinSCP\WinSCP.exe" "/script=D:\Success_Factors\SCP_Script\myscript.txt" at "", The process exit code was "1" while the expected was "0". End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 5:00:02 AM Finished: 5:00:05 AM Elapsed: 2.746 seconds. The package execution failed. The step failed.
Advertisements
jhong

Guest


Okay per this FAQ https://winscp.net/eng/docs/faq_scheduler
I changed the configuration storage, exported .ini to WinSCP folder and it worked.
Hayden

Guest


Thank you ... It worked for me. Smile
twee

Guest


I still couldn't get it work please help.
Package works fine manually but failed in job scheduling with error The process exit code was "1" while the expected was "0"
So how do you export to INI file?
Thanks in advance.
TN
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Please read documentation:
https://winscp.net/eng/docs/config#export

If that does not help, come back.
shrikanaskar1

Guest


I am using WinSCP as a Execute Process task in my SSIS project. Works fine in Visual Studio,however, when I run the SSIS package from a SQL job (SQL server Agent->Job) I get the an error. Appreciate any help.
================================
option batch on
option confirm on

open sftp://user_name:password@ftp.xx.com:22 -hostkey = "ssh-rsa ....................."

cd /XYZ/TEST

close
exit
===============================================

I tried using INI file; It works in in Visual Studio but not in SQL Agent
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
What "error"?
Did you read this? https://winscp.net/eng/docs/faq_scheduler

If the FAQ does not help, please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session 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 can mark the attachment as private.
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