-
-
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
Save() corrupts the already existing excel file #1693
Comments
Thanks for your issue. Which version of the Go language and Excelize library are you using? Could you follow the issue template and show us a complete, standalone example program or reproducible demo? |
从2.6.1到2.8全都有这种情况,其他版本暂时没有用到 |
Hi @ticmark, there are some incompatible changes in the Go 1.21.0 encoding/xml library, and it has been fixed on Go 1.21.1. Please using the Go 1.20.7 and previous Go released version or upgrade to Go 1.21.1 and later. If it doesn't works on Go 1.21.3, please show us a complete, standalone example program or reproducible demo. |
I am experiencing the same error when running Go 1.21.3 on macOS with Excelize 2.8.0. Reverting to 2.6.0 resolves the issue for me. Here is a link to my test code: https://github.com/bgetsug/excelize_test And here is a video demonstrating the issue: https://www.loom.com/share/68a8ae87d2ef4a1e8c931ba5b5169994?sid=f03fc2e4-8b8f-456f-b8e8-4af71096788b |
Upgrading the Golang version worked for me., thanks a lot @xuri ! |
Thanks for the feedback, I've closed this. |
Description
I have a Go program that reads an Excel file and needs to make some changes in the same. However when I am trying to save the file using the
Save()
function, then it corrupts the file. I have error-handled it and it doesn't seem to throw up any error. However, when I reopen the file after the program stops, it shows up an error (screenshot below). Also my file is closed throughout the execution of the program. Can anyone please help me with this issue?Steps to reproduce the issue:
excelize
Save()
method in the code.Describe the results you received:
Describe the results you expected:
Output of
go version
:Excelize version or commit ID:
Environment details (OS, Microsoft Excel™ version, physical, etc.):
The text was updated successfully, but these errors were encountered: