简体   繁体   English

这是什么.xlsx文件格式?

[英]What .xlsx file format is this?

Using an existing SSIS package, I was trying to import .xlsx files we received from a client. 使用现有的SSIS包,我试图导入从客户端收到的.xlsx文件。 I received the error message: 我收到了错误消息:

External table is not in the expected format 外部表格不是预期的格式

  • These files will open in XL 这些文件将在XL中打开
  • When I use XL (currently XL2010) to Save As... the file without making any changes: 当我使用XL(当前XL2010) 另存为...文件时不做任何更改:
    • The new file imports just fine 新文件导入就好了
    • The new file is 330% the size of the original file 新文件的大小是原始文件的330%
    • When changing .xlsx to .zip and investigating the contents with WinZip: 将.xlsx更改为.zip并使用WinZip调查内容时:
      • The original file only has 4 .xml files and a _rels folder (with 2 .rels files): 原始文件只有4个.xml文件和一个_rels文件夹(带有2个.rels文件): 原始文件
      • The new file has the expected .xlsx contents: 新文件具有预期的.xlsx内容: 新文件

Does anyone know what kind of file this could be? 有谁知道这可能是什么样的文件?

It would be nice to develop my SSIS package to work with these original files, without having to open and re-save each file. 开发我的SSIS包以使用这些原始文件会很好,而无需打开并重新保存每个文件。 There are only 12 files, so if there are no other options, opening/saving each file is not that big of deal...and I could automate it with VBA going forward. 只有12个文件,所以如果没有其他选项,打开/保存每个文件并不是那么重要......而且我可以通过VBA继续自动化它。

Thanks for any help anyone can provide, 感谢任何人都能提供的帮助,

CTB CTB

There are many Excel file formats . 有许多Excel文件格式

The file you are trying to import may have another excel format but the extension is changed to .xlsx (it could be edited by someone else) , or it could be created with a different Excel version. 您尝试导入的文件可能有另一种excel格式,但扩展名更改为.xlsx (可以由其他人编辑) ,或者可以使用其他Excel版本创建。

There is a Third-Part application called TridNet File Identifier which is an utility designed to identify file types from their binary signatures. 有一个名为TridNet文件标识符的第三方应用程序,它是一个用于从二进制签名中识别文件类型的实用程序。 you can use it to specify the real extension of the specified file. 您可以使用它来指定指定文件的实际扩展名。

Also after a simple search on External table is not in the expected format this error is thrown when the definition (or version) of the excel files supported in the connection string is different from the file selected. 此外,在External table is not in the expected format上的简单搜索External table is not in the expected format当连接字符串中支持的excel文件的定义(或版本)与所选文件External table is not in the expected format引发此错误。 Check the connection string used in the excel connection manager. 检查excel连接管理器中使用的连接字符串。 It might help to identify the version of the file. 识别文件的版本可能会有所帮助。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM