我有一个使用 SSIS 生成的 xlsx 文件。此文件的数据是通过数据流任务写入的,其中 xlsx 文件是 oledb 目标。我使用以下连接字符串作为 OLEDB 连接的表达式:
"Provider=Microsoft.ACE.OLEDB.12.0;Data Source="+ @[User::ExcelPath] +";
Extended Properties=\"Excel 12.0 Xml;HDR=YES\";"
文件在数据流任务之前打开得很好。数据流任务完成后,得到如下对话框:
当我单击"is"时,我收到另一条消息:
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/