RemoveRow() return a strange error in the latest version(2.8.1)
Author: mqjylCreated May 13, 2024Updated Apr 8, 2026
Labelsbug
Description
Steps to reproduce the issue:
When I use the latest version(v2.8.1) to delete some rows in the file, I always get the following error:
invalid column name "K14 K"Code:
rows, err := f.GetRows(sheet)
if err != nil {
return err
}
for i := len(rows); i >= 5; i-- {
if err = f.RemoveRow(sheet, i); err != nil {
fmt.Sprintf("f.remove row failed: %v", err)
return err
}
}There was no such problem using the previous version, such as v2.6.1。The test file has been posted in the link。 template.xlsx
Output of go version:
go 1.21Excelize version or commit ID:
v2.8.1Environment details (OS, Microsoft Excel™ version, physical, etc.):
MacOSSource: qax-os/excelize