2017-06-15 184 views
2

我一直在撞牆,試圖弄清楚這一點。我已經設置了兩個連接管理器來連接到Excel文件中的兩張表。每個用於將數據從SQL DB導出到工作表。它一直運行良好,直到昨晚。現在,我得到的錯誤:包驗證錯誤:0xC020801C excel連接

===================================

Package Validation Error (Package Validation Error)

===================================

Error at Export Approved Projects to Excel [Excel Dest AllData [293]]: SSIS > > Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed.

Error at Export Approved Projects to Excel [SSIS.Pipeline]: Excel Dest AllData failed validation and returned error code 0xC020801C.

Error at Export Approved Projects to Excel [SSIS.Pipeline]: One or more component failed validation.

Error at Export Approved Projects to Excel: There were errors during task validation.

Error at Package [Connection manager "Excel Connection Manager"]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x8007007E. An OLE DB record is available. Source: "Microsoft OLE DB Service Components" Hresult: 0x8007007E Description: "The specified module could not be found.".

(Microsoft.DataTransformationServices.VsIntegration)


Program Location:

at Microsoft.DataTransformationServices.Project.DataTransformationsPackageDebugger.ValidateAndRunDebugger(Int32 flags, IOutputWindow outputWindow, DataTransformationsProjectConfigurationOptions options) at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchDtsPackage(Int32 launchOptions, ProjectItem startupProjItem, DataTransformationsProjectConfigurationOptions options)

at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchActivePackage(Int32 launchOptions)

at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchDtsPackage(Int32 launchOptions, DataTransformationsProjectConfigurationOptions options)

at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.Launch(Int32 launchOptions, DataTransformationsProjectConfigurationOptions options)

我發現了這樣的回答:Package Validation Error其中建議改變Run64BitsFALSE。我這樣做,仍然得到同樣的錯誤。

我還找到了一個答案(雖然我不記得鏈接),它說要將連接管理器上的DelayValidation更新爲TRUE。我也這樣做了,仍然得到相同的錯誤。

後來我發現這是The Specified Module could not be found. . .

但它是5歲和談論它被卸載VS2012引起的。我實際上正在使用VS2012編寫該項目,所以我不認爲這是它,並沒有嘗試過。

其他建議???

UPDATE

我更換了DLL的建議並沒有改善。我仍然得到同樣的錯誤。

回答

0

Microsoft OLE DB Service Components" Hresult: 0x8007007E Description: "The specified module could not be found.".

您可以修復,即使你已經安裝之前修復Microsoft Office Database Engine這一點,但它似乎卸載某些Office產品或類似的操作可能會打破Excel的連接。

+0

這似乎工作。 – Mike