运行SSIS包作为SQL代理作业失败

问题描述 投票:1回答:2

我创建了一个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位模式,但没有任何帮助。

sql-server ssis sql-agent-job sql-server-2017 ssis-2017
2个回答
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


© www.soinside.com 2019 - 2024. All rights reserved.