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.

AutoFilter + merge giving an error

See original GitHub issue

Hello,

Current behaviour 😯

When I created a table and merge something in this table, I got an error when opening the excel file.

Excel completed file level validation and repair. Some parts of this workbook may have been repaired or discarded.
Removed Feature: AutoFilter from /xl/tables/table1.xml part (Table)
Removed Feature: Table from /xl/tables/table1.xml part (Table)

Steps to Reproduce 🕹

https://codesandbox.io/s/merge-cells-it88r In my example, I merge cells A1:A2 Click on the download button, open it and you will get the error

Expected 🤔

First thing, it is possible to disable AutoFilter?
If not I would like to disable it or use worksheet without columns

My Environment 🌎

Tech Version
Excel Microsoft Office Professional Plus 2016
React 16.6

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mvelluetcommented, Mar 22, 2022

@benedya we use https://www.npmjs.com/package/xlsx-populate. It is not perfect neither but we have solve our use cases

1reaction
Alanscutcommented, Feb 19, 2020

@mvelluet Can you be sure that your excel supports cells in merged tables? My excel doesn’t support it. And I disabled automatic filtering, but I also get an error when opening the excel file.

Excel completed file level validation and repair. Some parts of this workbook may have been repaired or discarded.
Removed Feature: Table from /xl/tables/table1.xml part (Table)

My Environment

Tech Version
Excel Microsoft Office Home and Student 2016

You can modify the table-xform.js file to disable AutoFilter for verification.

// lib\xlsx\xform\table\table-xform.js
prepare(model, options) {
    // this.map.autoFilter.prepare(model);
    this.map.tableColumns.prepare(model.columns, options)
}

render(xmlStream, model) { 
    //  . . .
    // this.map.autoFilter.render(xmlStream, model);
    this.map.tableColumns.render(xmlStream, model.columns);
    this.map.tableStyleInfo.render(xmlStream, model.style);
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Sort Merged Cells ( error message: merged cells must be same
First you must create an AutoFilter on the specific worksheet (I assumed the 'Activesheet') that contains the merged cells that you wish to...
Read more >
Filter not working for merged cell in Excel - YouTube
FB: https://www.facebook.com/shaakzscatiav5forumOne day training on any subject taught on my channel for 100$, Training only on weekends IST ...
Read more >
Unable to Filter Data after merging Cells? Then try this tips!
Hello, In this short video I have shown you how to filter data after merging cells. This is really simple and really helpful...
Read more >
Getting around error message for sorting merged cells in Excel
Sorting in Excel - Basics and Beyond · How to filter merged cells in excel| Filter not working for merged cell in Excel...
Read more >
How to Fix Merged Cells Must be Same Size Excel Error
When trying to sort data in Excel, you may have encountered an error indicating that merged cells must be the same size.
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