2015-06-05 103 views
0

我試圖通過使用命令行通過SSIS進程任務通過SFTP(FTP Voyager)發送文件。下面是我輸入參數:從SSIS進程任務運行FTP Voyager Transfer命令行

/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

您似乎在嘗試調用名爲「SVB TransACT Gateway」的連接配置文件。

如果配置文件存儲在Windows註冊表中,則運行SSIS的帳戶可能無法訪問該配置文件。

你最好嘗試使用像host=user=參數來指定命令行的會話等
https://support.solarwinds.com/Success_Center/Serv-U_Managed_File_Transfer_Serv-U_FTP_Server/Command_line_options_for_FTP_Voyager

+0

似乎不是來工作的。打開FTP(不介意sFTP)連接並停在那裏。 – nutsch

+1

我沒有找到用FTP Voyager打開SFTP的方法。您應該更好地使用具有良好文檔的另一個命令行SFTP客戶端。 –