1

我创建了 SSIS 一个项目,它将一些数据导出到 Excel。在 Visual Studio 2017 中它工作正常,但是当我使用 SQL Server 代理作业(MS SQL Server 2017)运行它时,它会引发此错误:

"Executed as user: Administrator. Microsoft (R) SQL Server Execute Package 
Utility  Version 13.0.1601.5 for 32-bit  Copyright (C) 2016 Microsoft. All 
rights reserved.    Started:  3:31:46 PM  Error: 2017-12-27 15:31:47.10     
Code: 0xC0010018     Source: Package      Description: Error loading value "
<DTS:ConnectionManagers xmlns:DTS="www.microsoft.com/SqlServer/Dts">
<DTS:ConnectionManager DTS:refId="Package.ConnectionManagers[Excel]" 
DTS:CreationName="EXCEL" DTS:DTSID="{0E7AADD0-AA79-4C99-8FFC-92E1CB5A871A}" 
DTS:ObjectName="Excel"><DTS:ObjectData><DTS" from node 
"DTS:ConnectionManagers".  End Error  Could not load package "\\phantsmgmt\c$\SDATA\ITDokumentace\SQL_DT_projects\Export_ser_zak_CEBIA\Export_ser_zak_CEBIA\Export_ser_zak_CEBIA\Package.dtsx"
because of error 0xC0010014.  Description: The package failed to load due to 
error 0xC0010014 "One or more error occurred. There should be more specific 
errors preceding this one that explains the details of the errors. This 
message is used as a return value from functions that encounter errors.". 
This occurs when CPackage::LoadFromXML fails.  Source: Package  Started:  
3:31:46 PM  Finished: 3:31:47 PM  Elapsed:  0.422 seconds.  The package 
could not be loaded.  The step failed."

这很奇怪,因为我有另一个 SSIS 项目,它也使用 Excel 连接管理器,并且使用计划的 SQL Server 代理作业可以正常工作。

我试图再次打开和关闭 32 位模式,但没有任何帮助。

4

2 回答 2

0

对我有帮助的解决方案是 Visual Studio 中的目标服务器版本设置。更多信息在这里: https://social.msdn.microsoft.com/Forums/sqlserver/en-US/84e470e9-aeef-4850-b29e-9eb3d545819f/running-ssis-package-as-sql-agent-job-failed?论坛=sqlintegrationservices

于 2017-12-29T13:49:11.117 回答
0

他们的主要错误是:

Error loading value "
<DTS:ConnectionManagers xmlns:DTS="www.microsoft.com/SqlServer/Dts">
<DTS:ConnectionManager DTS:refId="Package.ConnectionManagers[Excel]" 
DTS:CreationName="EXCEL" DTS:DTSID="{0E7AADD0-AA79-4C99-8FFC-92E1CB5A871A}" 
DTS:ObjectName="Excel"><DTS:ObjectData><DTS" from node 
"DTS:ConnectionManagers".  End Error

看起来错误来自 Excel 连接管理器,有一个值无法加载。首先,您必须检查 excel 文件路径是否存在。如果文件是在包执行后创建的,您必须为使用此连接的每个组件设置DelayValidation属性。True

于 2017-12-27T21:35:24.033 回答