我創建了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位模式,但沒有任何幫助。
你是否安裝了軟件包到文件系統或數據庫?該包是否確實位於\\ phantsmgmt \ c $ \ SDATA \ ITDokumentace \ SQL_DT_projects \ Export_ser_zak_CEBIA \ Export_ser_zak_CEBIA \ Export_ser_zak_CEBIA \ Package.dtsx中? – HardCode
是的,文件系統,它真的存在於那個位置。問題出在VS中配置的目標服務器版本中。見下文 – WhiteB1