-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Excel Files generated with Excelize cannot be read anymore #1633
Comments
Unsure if it is related, but the same thing occurred to me. Have you check what Go version are you on? I updated mine to the latest stable and it stopped working the way you mentioned. The issue is fixed after downgrading back to v1.20.7. |
I got the same problem, when I locally build the binary it all works fine, this is with version |
Did some additional testing;
|
@RobM83 && jintaokong: Thanks a lot for the feedbacks. |
Yes, it will probably work with 1.20.7 (at least it did for me :-) ). |
If it does not work with Go 1.21.0, please reference the issues #1465, #1595, #1603, #1608, #1614, #1619, #1620, and #1621. There are some incompatible changes in the Go 1.21.0 encoding/xml library. I have given feedback to the Go team and created a patch for it (golang/go#61881), and the Go team has added golang/go#62051 to the Go 1.21.1 milestone. I suggest using the Go 1.20.7 and previous Go released version or waiting for the next Go minor releases. |
I have added notice on the README and documentation website for this, and I've closed this. If you have any questions, please let me know, and reopen this anytime. |
I did downgrade to 1.20.7 and it did work for me. |
Description
I've been using Excelize with Golang without problem for 2 years.
Recently, although I did not change anything, the excel files generated by my golang module could not be read with Excel for Mac.
The strange item: I did not change anything in my module, which worked perfectly before. It seems that some XML items are not supported any more.
It must be related to the new release of Excel 16.76 on August 15th:
https://learn.microsoft.com/en-us/officeupdates/release-notes-office-for-mac
Steps to reproduce the issue:
Describe the results you received:
Here is the message provided when I try to open the file with Excel:
Repair Result to Excel Test0.xml
Errors were detected in file ’pathtofile’
Repaired Part: /xl/worksheets/sheet2.xml part with XML error. HRESULT 0x8000ffff
Microsoft Words for Mac
Version: 16.76 (23081101)
Message:
We found a problem with some content in ’Excel Test.xlsx’. Do you want us to try to recover as much as we can? If you trust the source of this workbook, click Yes.
Excel was able to open the file by repairing or removing the unreadable content.
Describe the results you expected:
Output of
go version
:Excelize version or commit ID:
v2.7.1
Environment details (OS, Microsoft Excel™ version, physical, etc.):
Go module running with Ubuntu Linux
Excel for Mac 16.76 running with MacOS Ventura 13.4.1
The text was updated successfully, but these errors were encountered: