从SSIS流程任务

时间:2015-06-05 21:35:19

标签: ssis ftp sftp

我尝试通过SSIS流程任务使用命令行通过SFTP(FTP Voyager)发送文件。这是我输入的论点:

/C "C:\Program Files (x86)\RhinoSoft.com\FTP Voyager\FTP Voyager.exe"  
profile="SVB TransACT Gateway" autoquit=1 
put="C:\Data Warehouse\SVB Data\CONS2015060507"" 

如果我在命令窗口中直接运行代码(没有起始/C),它就可以正常运行。如果我在SSIS包中运行它,我会收到以下错误。

Date,Source,Severity,Step ID,Server,Job Name,Step Name,Notifications,Message,Duration,Sql Severity,Sql Message ID,Operator Emailed,Operator Net sent,Operator Paged,Retries Attempted
06/10/2015 16:25:29,jbTestPackage,Error,0,CARLSBERG,jbTestPackage,(Job outcome),,The job failed.  The Job was invoked by User HAHNFAMILY\hnadmin.  The last step to run was step 1 (Run Package).,00:00:06,0,0,,,,0
06/10/2015 16:25:29,jbTestPackage,Error,1,CARLSBERG,jbTestPackage,Run Package,,Executed as user: CARLSBERG\SYSTEM. Microsoft (R) SQL Server Execute Package Utility  Version 10.0.5500.0 for 64-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Started:  4:25:29 PM  Error: 2015-06-10 16:25:35.63     Code: 0xC0029151     Source: Execute Process Task Execute Process Task     Description: In Executing "C:\Windows\System32\cmd.exe" "/c "c:\data warehouse\svb data\ftptransfer.bat"" at ""<c/> The process exit code was "255" while the expected was "0".  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  4:25:29 PM  Finished: 4:25:35 PM  Elapsed:  6.344 seconds.  The package execution failed.  The step failed.,00:00:06,0,0,,,,0

我错过了什么?

1 个答案:

答案 0 :(得分:1)

您似乎正在尝试调用名为&#34; SVB TransACT Gateway&#34;的连接配置文件。

如果配置文件存储在Windows注册表中,则运行SSIS的帐户可能无法访问该配置文件。

您最好尝试使用host=user=等参数在命令行上指定会话。
https://support.solarwinds.com/SuccessCenter/s/article/Command-line-options-for-FTP-Voyager