0

可能重复:
使用 dtexec 运行 SSIS 包

当我在本地系统上运行我的 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.
4

1 回答 1

1
Version 10.0.4000.0 for 64-bitCopyright (C) Microsoft Corp 1984-2005.

您是否尝试在 32 位模式下运行它?

http://microsoft-ssis.blogspot.nl/2012/09/swtich-package-from-64bit-to-32bit.html

于 2012-10-29T11:07:57.420 回答