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

我创建了SSIS项目,该项目将一些数据导出到Excel。在Visual Studio 2017年它工作正常,但是当我运行它使用SQL Server代理作业(MS SQL服务器2017年),它抛出这个错误:运行SSIS包作为SQL代理作业失败

"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."

也就是说STANGE,因为我有另外一个SSIS项目,也在使用Excel连接管理器,并且它使用预定的SQL Server代理作业正常工作。

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

回答:

他们主要错误是:

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

回答:

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

以上是 运行SSIS包作为SQL代理作业失败 的全部内容, 来源链接: utcz.com/qa/266055.html

回到顶部