xml - xlsx 错误 : "Removed Records: Named range from/xl/workbook.xml part" when tried to resolve errors

标签 xml excel ssis xlsx

我有一个使用 SSIS 生成的 xlsx 文件。此文件的数据是通过数据流任务写入的,其中 xlsx 文件是 oledb 目标。我使用以下连接字符串作为 OLEDB 连接的表达式:

"Provider=Microsoft.ACE.OLEDB.12.0;Data Source="+ @[User::ExcelPath] +";
Extended Properties=\"Excel 12.0 Xml;HDR=YES\";"

文件在数据流任务之前打开得很好。数据流任务完成后,得到如下对话框:

enter image description here

当我单击"is"时,我收到另一条消息: enter image description here

xml文件的内容是

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<recoveryLog xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">       <logFileName>error072840_02.xml</logFileName><summary>Errors were detected in file   'C:\output\documentId-1.xlsx'</summary><removedRecords summary="Following is a list of removed records:"><removedRecord>Removed Records: Named range from /xl/workbook.xml part (Workbook)</removedRecord></removedRecords></recoveryLog>

我无法弄清楚到底是什么导致了这个错误。任何帮助将不胜感激。时间差

最佳答案

我在使用 EPPlus 自定义现有模板时遇到了这个问题。对我来说,问题出在模板本身,因为它包含对查找表的无效引用。我在公式 -> 名称管理器中找到了它。

如果你遇到这个问题,我建议你检查模板。

关于xml - xlsx 错误 : "Removed Records: Named range from/xl/workbook.xml part" when tried to resolve errors,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18539267/

相关文章:

java - 使用Java代码执行放在xml文件中的sql

c# - 在 Windows 窗体或 WPF 应用程序中使用集成服务项目?

sql-server - 通过 SSIS 创建并复制 Access 表到 SQL? SQL 2008

azure - 将数据从 Azure SQL 托管实例导出到 Azure Data Lake Storage 作为 json

excel - Excel 中的公式用于计算字符串中子字符串的出现次数

vb.net - 如何在 VB.NET 中没有对话框 "Really want to overwrite"的情况下覆盖其他 Excel 文件

php - SimpleXMLElement - 字符串无法解析为 XML

c# - 高效 XML 的 .NET 实现

ios - 解析位于项目内部的 XML

javascript - 用于存储 Excel 文件数据的变量损坏了? JavaScript