简体   繁体   English

“ Microsoft Access数据库引擎”结果:0X80004005说明:“外部表不是预期的格式。”

[英]“Microsoft Access database Engine” Hresult: 0X80004005 Description: “External Table is not in expected Format.”

I am having an issue while i am trying to load data into table from an .xlsx file using SSIS 2014, previously i was able to load the data as i received the file in .xls version, but now recently i am receiving the file in .xlsx file (i somehow came to know that they are generating file of OFFICE 16). 我在尝试使用SSIS 2014将数据从.xlsx文件加载到表中时遇到问题,以前我可以在接收.xls版本的文件时加载数据,但现在我在以下位置接收文件: .xlsx文件(我不知何故知道他们正在生成OFFICE 16文件)。 what all scenarios i have tested : 我测试了所有方案:

1.Opening the file manually and Save/Save As it and load the table - it is working but, not recommended on daily basis as i need that to be automated. 1.手动打开文件并保存/另存为并加载表-它正在工作,但不建议每天使用,因为我需要将其自动化。

2.In DFT i am using this connection string is Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Users\\a.xlsx;Extended Properties=Excel 12.0;HDR=Yes;IMEX=1; 2.在DFT中,我正在使用的连接字符串是Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Users\\a.xlsx;Extended Properties=Excel 12.0;HDR=Yes;IMEX=1; -- it is not working still -它仍然无法正常工作

3.Tried opening the Excel file using a C# code (Script Task), i have tried the above connection and also some other version like changing extended version in the connection string which i mentioned above: 3.尝试使用C#代码打开Excel文件(脚本任务),我已经尝试了上述连接以及我上面提到的连接字符串中的其他一些版本,例如更改扩展版本:

  • Extended Properties=Excel 12.0;
  • Extended Properties=Excel 12.0 xml;
  • Extended Properties=HTML import;

    then i got an error saying 然后我说一个错误

could not find installable ISAM. 找不到可安装的ISAM。

did not understand what error is this !! 不明白这是什么错误!

4.I opened the .xlsx file in notepad, i noticed that "xl/workbook.xml" has changed to "[Content_Types].xml" when i just open the file and press save button. 4.我在记事本中打开.xlsx文件,我注意到当我打开文件并按保存按钮时, "xl/workbook.xml"已更改为"[Content_Types].xml" then the file is able to access. 那么该文件即可访问。 - did not get any clarity on this scenario. -在这种情况下没有得到任何澄清。

PS: I am using SQL Server 2014 and SSIS 2014 in Windows Server 2012. PS:我在Windows Server 2012中使用SQL Server 2014和SSIS 2014。

Assuming you have done all the preparations including installing Microsoft Access 2010 Runtime 假设您已完成所有准备工作,包括安装Microsoft Access 2010 Runtime

Try using the following connection string from DFT ( added double quotes as Xml keyword ): 尝试使用DFT中的以下连接字符串( 以Xml关键字添加双引号 ):

Provider=Microsoft.ACE.OLEDB.12.0;Data Source="C:\Users\a.xlsx";Extended Properties="Excel 12.0 Xml;HDR=Yes;IMEX=1";

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 SSIS 包创建 Hresult:0x80004005 说明:“登录超时已过期”错误 - SSIS package creating Hresult: 0x80004005 Description: “Login timeout expired” error SSIS OLE DB 记录可用。 来源:“Microsoft SQL Server Native Client 11.0” Hresult:0x80004005,无法确定元数据 - SSIS An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005, The metadata could not be determined Azure SQL服务器数据库[Win32Exception(0x80004005):访问被拒绝] - Azure SQL server database [Win32Exception (0x80004005): Access is denied] SQL Server批量插入转换错误MSG 4864 HRESULT 0x80004005 - SQL Server Bulk Insert conversion error MSG 4864 HRESULT 0x80004005 当我尝试使用WIX安装数据库时出现错误0x80004005 - Error 0x80004005 when I tried to install a database with WIX SQL Server 2016 R 服务:sp_execute_external_script 返回 0x80004005 错误 - SQL Server 2016 R Services: sp_execute_external_script returns 0x80004005 error 得到“外部表不是预期的格式。” 尝试在 SSIS 中导入 Excel 文件时出错 - Getting "External table is not in the expected format." error while trying to import an Excel File in SSIS SSIS 错误代码 DTS_E_OLEDBERROR 0x80004005 - SSIS Error Code DTS_E_OLEDBERROR 0x80004005 SSIS 包停止使用错误代码:0x80004005 - SSIS Package stopped working with Error code: 0x80004005 失败的行数超过了指定的最大值(Microsoft JET数据库引擎(80004005):电子表格已满。) - The number of failing rows exceeds the maximum specified (Microsoft JET Database Engine (80004005): Spreadsheet is full.)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM