Skip to content

Found problem with some content #1366

Open
@censys-git

Description

@censys-git

💬 Questions and Help

I am working with exceljs to incorporate into a NetSuite environment. Using it on the browser side due to limitations with NetSuite's server-side JavaScript platform, so currently using version 4.0.1 through cloudflare CDN load.

I start with a pre-built Excel file that has three tabs. One of these tabs is my "template" to copy and create anywhere between 10 and 20 other tabs. There are some columns that are added dynamically based on user preference that first get setup on this template sheet, then I proceed to copy the sheet (new name), and then add rows of data specific to the individual new sheet. This includes adding some formulas, some reformatting, and data validation (simple whole number greaterthanorequal to 0).

The file builds and saves fine, but when I open the excel file, I get:
"We found a problem with some content in 'filename.xlsx'. Do you want us to try and recover as much as we can?"

When I click "Yes", it repairs and a little dialog box displays telling me it has repaired xyz and lists every sheet I added as well as the template sheet, all with the same reason: "Repaired Records: Column information from /xl/worksheetssheet[n].xml part"

Of course, as has been mentioned in numerous issues on corrupt files and across the ether, Microsoft's log for this is absolutely useless information (not even sure why they bother to log it).

I took the before file and looked at the sheets in their XML format as well as the repaired sheets in their XML format and compared the sheets (an example of both attached). I can't make heads or tails of what I am mostly reading, but in terms of comparisons, beside some ids being changed, I really cannot see a difference between them (nothing stands out anyway).

I'm at wits end here. This is a project for a client (my first using exceljs) so hoping to resolve as the intent is to distribute this to the client's customers and would not be good to be sending them a "corrupt" file. Right now, the workaround is to open, repair, re-save, then distribute, but the whole point of the project is to build this file, save it to the NetSuite file cabinet, then use NetSuite to automatically email it to customers (no intermediate intervention), so the workaround kind of defeats the purpose of the project.

Hoping some of the experts here can possibly direct me in the right direction or recognize an obvious issue I can fix.
worksheet-comparison.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy