question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Found problem with some content

See original GitHub issue

💬 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

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:11
  • Comments:8

github_iconTop GitHub Comments

1reaction
OrenSayagcommented, Nov 10, 2022

I also encounter this problem

1reaction
Tri-Vicommented, Oct 5, 2022

Encountered the same issue. Has anyone been able to resolve this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix "We Found A Problem with Some Content" Error in ...
Part 1: Proven Methods to Fix 'We Found a Problem with Some Content' Error in Excel hot · Fix 1: Use the “Open...
Read more >
“We Found A Problem with Some Content in Excel 2016 ...
Solution 1: MS Office Repair Option · Open MS Excel application. Click on its File tab and then choose Open option. · Open...
Read more >
We found a problem with some content .xlsx error. Then ...
xlsx file from the web and trying to open it with Excel 2016 (and 2013), I am experiencing an error that reads: "We...
Read more >
Quick Fixes to Repair Microsoft Excel 2013/2016 Content ...
How to Resolve ?Excel Found Problem with Some Content? Error? · Tip #1: Repair Corrupt Excel File · Tip #2: Set Calculation Option...
Read more >
We Found a Problem with Some Content in Excel
Problem Solved--We Found a Problem with Some Content in Excel · Method 1: Use Open and Repair Function of MS Excel · Method...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found