Skip to content
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

File showing Corrupted #1640

Closed
deb151292 opened this issue Aug 31, 2023 · 8 comments
Closed

File showing Corrupted #1640

deb151292 opened this issue Aug 31, 2023 · 8 comments
Labels
needs more info This issue can't reproduce, need more info

Comments

@deb151292
Copy link

When we are not using "streamWriter" its showing corrupted file . "streamWriter" does not support the HyperLink Feature so how can we do that . 2 years our application running suddenly the new update causing problem . its only happening in alpine docker that we are using as our server but its working in our local code .

@xuri
Copy link
Member

xuri commented Aug 31, 2023

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?

@xuri xuri added the needs more info This issue can't reproduce, need more info label Aug 31, 2023
@deb151292
Copy link
Author

Go version
1.17.7

@deb151292
Copy link
Author

Description
File showing Corrupted

Steps to reproduce the issue:

Create any excel document using this library , run it in Docker with alpine Docker base
after getting the file , open it will show file damaged.

Output of go version:

go version go1.17.7

Environment details (OS, Microsoft Excel™ version, physical, etc.):
Alpine Docker , excel version all

@Cr4psy Cr4psy mentioned this issue Aug 31, 2023
@xuri
Copy link
Member

xuri commented Aug 31, 2023

Thanks for your feedback. Please make sure you Go version is not 1.21.0 in your Docker, there are some incompatible changes in the Go 1.21.0 encoding/xml library, also reference reference the issues #1465, #1595, #1603, #1608, #1614, #1619, #1620, #1621, #1623, #1633, #1637 and #1641. If you are using the Go 1.17.7, please provide standalone example program or reproducible demo.

@deb151292
Copy link
Author

No Docker Go version is not 1.21.0

@mpietrowicz
Copy link

Same here 1.21.0 corrupted file but on recovery sheets are visible but no data

@xuri
Copy link
Member

xuri commented Sep 1, 2023

@mpietrowicz, please reference the issue in above reply. Please using the Go 1.20.7 and previous Go released version or waiting for the next Go minor releases. The Go 1.21.1 will be released in the September 6, 2023.

@xuri
Copy link
Member

xuri commented Sep 1, 2023

@deb151292, there are many reasons can be caused workbook corrupted, still not have enough info of code and attachments to reproduce this issue, so I'll close this issue, if you have any questions, please let me know to reopen this anytime.

@xuri xuri closed this as completed Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info This issue can't reproduce, need more info
Projects
None yet
Development

No branches or pull requests

3 participants