EPPlus icon indicating copy to clipboard operation
EPPlus copied to clipboard

epplus 6.2 InsertRow can't update formula

Open webcrack4 opened this issue 3 years ago • 6 comments

image The formula works on version epplus 4.5.3.3.

webcrack4 avatar Apr 04 '23 12:04 webcrack4

Please attach a reproducible sample.

JanKallman avatar Apr 04 '23 13:04 JanKallman

We fixed a similar issue in 6.2.2, so I'll close this

JanKallman avatar Apr 17 '23 14:04 JanKallman

The 6.2.2 version fixes formula adjustment but still has the same issue the produced spreadsheets had before. When the updated spreadsheet document is opened, Excel (version 16.0.16227.20280) shows a warning.

image

When 'Yes' is selected (the only option to open the spreadsheet), the following repairs report is presented.

image

Repairs log file:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<recoveryLog xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
    <logFileName>error428760_04.xml</logFileName>
    <summary>Errors were detected in file '***redacted***\test.xlsx'</summary>
    <repairedParts>
        <repairedPart>Repaired Part: /xl/worksheets/sheet1.xml part with XML error.  Load error. Line 1, column 0.</repairedPart>
        <repairedPart>Repaired Part: /xl/worksheets/sheet2.xml part with XML error.  Load error. Line 1, column 0.</repairedPart>
        <repairedPart>Repaired Part: /xl/worksheets/sheet3.xml part with XML error.  Load error. Line 1, column 0.</repairedPart>
        <repairedPart>Repaired Part: /xl/worksheets/sheet4.xml part with XML error.  Load error. Line 1, column 0.</repairedPart>
        <repairedPart>Repaired Part: /xl/worksheets/sheet5.xml part with XML error.  Load error. Line 1, column 0.</repairedPart>
        <repairedPart>Repaired Part: /xl/worksheets/sheet6.xml part with XML error.  Load error. Line 1, column 0.</repairedPart>
        <repairedPart>Repaired Part: /xl/worksheets/sheet7.xml part with XML error.  Load error. Line 1, column 0.</repairedPart>
        <repairedPart>Repaired Part: /xl/worksheets/sheet8.xml part with XML error.  Load error. Line 1, column 0.</repairedPart>
        <repairedPart>Repaired Part: /xl/worksheets/sheet9.xml part with XML error.  Load error. Line 1, column 0.</repairedPart>
        <repairedPart>Repaired Part: /xl/worksheets/sheet10.xml part with XML error.  Load error. Line 1, column 0.</repairedPart>
    </repairedParts>
</recoveryLog>

I've compared the contents of the updated (original) .xslx and the one fixed by Excel and noticed an a calcChain.xml file that was added to the fixed .xslx.

image

SeanFeldman avatar Apr 27 '23 05:04 SeanFeldman

Can you provide some sample code and a workbook if needed to reproduce this issue?

JanKallman avatar Apr 27 '23 05:04 JanKallman

@JanKallman, we'd have to switch to a private channel - the "template" spreadsheet is not something I'd be able to share publicly. You can reach me at feldman.sean at gmail.

SeanFeldman avatar Apr 27 '23 06:04 SeanFeldman

Do you have a commercial license? In that case, please use our support portal from your account at our web site.

JanKallman avatar May 03 '23 05:05 JanKallman