SSIS 2008 R2 – “Excel连接pipe理器”失败,错误代码为0xC0202009

在微软10月份的补丁应用在服务器上之后,我们正面临着以下错误。

我们已经将Run64BitRunTime设置为false,将DelayValidation设置为True,并更改了Excel文件夹的path。 仍然面临着以下问题。

Error: 0xC0202009 at SSIS_Document_Report, Connection manager "Excel Connection Manager": SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft JET Database Engine" Hresult: 0x80004005 Description: "Unexpected error from external database driver (1).". Error: 0xC020801C at SSIS_Get_Document_Report, Excel Destination [436]: 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: 0xC0047017 at SSIS_Get_Document_Report, SSIS.Pipeline: component "Excel Destination" (436) failed validation and returned error code 0xC020801C. Error: 0xC004700C at SSIS_Get_Document_Report, SSIS.Pipeline: One or more component failed validation. Error: 0xC0024107 at SSIS_Get_Document_Report: There were errors during task validation. Warning: 0x80019002 at SSIS_Document_Report: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (5) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors. SSIS package "SSIS_Document_Report.dtsx" finished: Failure. 

从下面的解决方法解决了这个问题在本地机器。 但是在UAT服务器中,它不能按预期工作。 原因可能在下面的链接中突出显示的信息。 任何有关如何实现这个大胆突出的build议? https://www.microsoft.com/en-us/download/details.aspx?id=13255

在支持的文件格式和数据库存储库(如SQL Server)之间传输数据。 例如,使用SQL Server导入和导出向导或SQL Server集成服务( 提供的SSIS作业在具有有效的HKEY_CURRENT_USERregistryconfiguration单元的login用户的上下文中运行)将数据从Excel工作簿传输到SQL Server。

原因是微软本月发布的安全补丁很less。 准确地说,它们是KB4041693&KB4041687。

当我删除这些补丁时,它开始为我工作。 但这不是build议的解决scheme。

请参阅以下线索中讨论的其他解决scheme

“应用十月份安全更新后,外部数据库驱动程序(1)(Microsoft JET Database Engine)出现意外错误”

ODBC Excel驱动程序已停止使用“来自外部数据库驱动程序的意外错误(1)。(Microsoft JET Database Engine)”

我们正在实现的解决scheme是打开SSIS包,并将连接pipe理器生成的excel文件的版本更改为除97-03之外的任何内容。 您将不得不下载并安装07-2010的Microsoft.ACE.OLEDB.12.0连接器和Microsoft.ACE.OLEDB.16.0的任何更新的连接器。