Quantcast
Channel: EPPlus Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 2262

Created Unassigned: Removed Records: Named range from /xl/workbook.xml part (Workbook) [15497]

$
0
0
Hello, I am trying to edit an existing xlsx file that contains many pictures, named ranges, worksheets, and formatting. I perform the following code:

```
FileInfo newFile = new FileInfo("C:/test.xlsx");
ExcelPackage p = new ExcelPackage(newFile);
FileInfo saveAsFile = new FileInfo("C:/finished.xlsx");
p.SaveAs(saveAsFile);
```

As you can see, I am not editing this xlsx file in any way, but when I open the new "finished.xlsx", I get an error message telling me that there is a problem with some of the content. Then the log shows up and shows and error:

> Removed Records: Named range from /xl/workbook.xml part (Workbook)

I investigated this issue by exploring the before and after workbook.xml files and noticing one difference between the two. I've noted the difference with ### before the line

Before:

```
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<workbook mc:Ignorable="x15" xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main">
<fileVersion appName="xl" lastEdited="6" lowestEdited="6" rupBuild="14420"/>
<workbookPr codeName="ThisWorkbook"/>
<mc:AlternateContent xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">
<mc:Choice Requires="x15">
<x15ac:absPath url="C:\Users\dillo\Desktop\" xmlns:x15ac="http://schemas.microsoft.com/office/spreadsheetml/2010/11/ac"/>
</mc:Choice>
</mc:AlternateContent>
<bookViews>
<workbookView activeTab="1" windowHeight="7180" windowWidth="15480" xWindow="120" yWindow="60"/>
</bookViews>
<sheets>
<sheet name="Change" r:id="rId1" sheetId="5"/>
<sheet name="R1Data" r:id="rId2" sheetId="1"/>
<sheet name="Mounts" r:id="rId3" sheetId="13"/>
<sheet name="Process" r:id="rId4" sheetId="11"/>
<sheet name="ST3 Base Frame" r:id="rId5" sheetId="10"/>
<sheet name="DCS User models" r:id="rId6" sheetId="14"/>
</sheets>
<externalReferences>
<externalReference r:id="rId7"/>
</externalReferences>
<definedNames>
<definedName localSheetId="0" name="_xlnm.Print_Area">Change!$A$1:$G$31</definedName>
<definedName localSheetId="2" name="_xlnm.Print_Area">Mounts!$A$1:$N$92</definedName>
<definedName localSheetId="3" name="_xlnm.Print_Area">Process!$A$1:$M$46</definedName>
<definedName localSheetId="1" name="_xlnm.Print_Area">'R1Data'!$A$1:$G$36</definedName>
<definedName localSheetId="4" name="_xlnm.Print_Area">'ST3 Base Frame'!$A$1:$M$23</definedName>
###<definedName name="Shape">[1]Sheet2!$A$1:$A$5</definedName>###
</definedNames>
<calcPr calcId="152511"/>
</workbook>
```


After:

```
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<workbook mc:Ignorable="x15" xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main">
<fileVersion appName="xl" lastEdited="6" lowestEdited="6" rupBuild="14420"/>
<workbookPr codeName="ThisWorkbook"/>
<mc:AlternateContent xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">
<mc:Choice Requires="x15">
<x15ac:absPath url="C:\Users\dillo\Desktop\" xmlns:x15ac="http://schemas.microsoft.com/office/spreadsheetml/2010/11/ac"/>
</mc:Choice>
</mc:AlternateContent>
<bookViews>
<workbookView activeTab="1" windowHeight="7180" windowWidth="15480" xWindow="120" yWindow="60"/>
</bookViews>
<sheets>
<sheet name="Change" r:id="rId1" sheetId="5"/>
<sheet name="R1Data" r:id="rId2" sheetId="1"/>
<sheet name="Mounts" r:id="rId3" sheetId="13"/>
<sheet name="Process" r:id="rId4" sheetId="11"/>
<sheet name="ST3 Base Frame" r:id="rId5" sheetId="10"/>
<sheet name="DCS User models" r:id="rId6" sheetId="14"/>
</sheets>
<externalReferences>
<externalReference r:id="rId7"/>
</externalReferences>
<definedNames>
###<definedName name="Shape">[file:///\\bramalea\Archive\MAS\2015\Jobs\4245-Karmax%20CD4.2%20Rear%20Rails\___Automation\4245_Karmax_CD4_2\Robotics\Robot%20setup\DCS%20files\ZONE_1%20LH\10R01_DCS_LH.xlsx]Sheet2!$A$1:$A$5</definedName>###
<definedName localSheetId="0" name="_xlnm.Print_Area">'Change'!$A$1:$G$31</definedName>
<definedName localSheetId="1" name="_xlnm.Print_Area">'R1Data'!$A$1:$G$36</definedName>
<definedName localSheetId="2" name="_xlnm.Print_Area">'Mounts'!$A$1:$N$92</definedName>
<definedName localSheetId="3" name="_xlnm.Print_Area">'Process'!$A$1:$M$46</definedName>
<definedName localSheetId="4" name="_xlnm.Print_Area">'ST3 Base Frame'!$A$1:$M$23</definedName>
</definedNames>
<calcPr calcId="152511" fullCalcOnLoad="1"/>
</workbook>
```

How can I fix this issue?

Viewing all articles
Browse latest Browse all 2262

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>