2012-10-29 180 views
0

可能重複:
Running an SSIS Package using dtexecSSIS部署問題

我的SSIS包當我跑步是我的本地系統上正常工作。我的軟件包將一個空白模板excel文件只有標題複製到另一個地方,然後使用數據庫中的數據填充此副本。然而,當我把服務器上的包和配置,並在其上安排一個SQL服務器的工作,這是引發錯誤如下:

Executed as user: CIQHYD\sqladmindev. 
Microsoft (R) SQL Server Execute Package UtilityVersion 10.0.4000.0 for 64-bitCopyright (C) Microsoft Corp 1984-2005. All rights reserved. 
Started: 3:24:28 PM 
Error: 2012-10-29 15:24:28.34 
    Code: 0xC001401E 
    Source: GICSReport Connection manager "GICSReport.xls" 
    Description: The file name "\\HYD-FILESVR\Departments\Technology\GICSReports\Dev\GICSReport.xls" specified in the connection was not valid. 
End Error 
Error: 2012-10-29 15:24:28.34 
    Code: 0xC001401D 
    Source: GICSReport 
    Description: Connection "GICSReport.xls" failed validation. 
End Error 
DTExec: The package execution returned DTSER_FAILURE (1). 
Started: 3:24:28 PM 
Finished: 3:24:28 PM 
lapsed: 0.234 seconds 
[SQLSTATE 42000] (Error 50000). The step failed. 

當我刪除在目標文件夾中的文件,我得到這個錯誤:

Executed as user: CIQHYD\sqladmindev. 
Microsoft (R) SQL Server Execute Package Utility 
Version 10.0.4000.0 for 64-bitCopyright (C) Microsoft Corp 1984-2005. All rights reserved. 
Started: 3:15:38 PM 
Error: 2012-10-29 15:15:38.57 
    Code: 0xC001401E 
    Source: GICSReport Connection manager "GICStemplate.xls" 
    Description: The file name "\\HYD-FILESVR\Departments\Technology\GICSAutomationTemplate\GICStemplate.xls" specified in the connection was not valid. 
End Error 
Error: 2012-10-29 15:15:38.57 
    Code: 0xC0202070 
    Source: GICSReport Connection manager "GICStemplate.xls" Description: The file name property is not valid. The file name is a device or contains invalid characters. 
End Error 
Error: 2012-10-29 15:15:38.57 
    Code: 0xC0029163 
    Source: Copy Template To Destination File System Task 
    Description: File or directory "\\HYD-FILESVR\Departments\Technology\GICSAutomationTemplate\GICStemplate.xls" represented by connection "GICStemplate.xls" does not exist. 
End Error 
Error: 2012-10-29 15:15:38.57 
    Code: 0xC002F30A 
    Source: Copy Template To Destination File System Task 
    Description: The source is empty. 
End Error 
DTExec: The package execution returned DTSER_FAILURE (1). 
Started: 3:15:38 PM 
Finished: 3:15:38 PM 
Elapsed: 0.344 seconds [SQLSTATE 42000] (Error 50000). The step failed. 
+0

澄清:我在我的部署包作爲一個SQL服務器作業的T-SQL任務。這個任務本質上是對DTEXEC執行命令行調用,傳遞包名和配置文件。 – Vivek

+0

這不是權限問題,因爲即使當我將作業的所有者更改爲自己而不是sqladmindev時,它仍然會引發相同的錯誤。 – Vivek

+0

爲了澄清,您的軟件包沒有*部署*問題。你有*執行*錯誤。部署問題將顯示爲無法將SSIS包複製到(SQL Server,文件系統或SSIS包存儲) – billinkc

回答