mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #268] Error opening file with Excel #211
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#211
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @duncangroenewald on GitHub (Jan 17, 2020).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/268
Originally assigned to: @jmcnamara on GitHub.
I am getting an error on one generated file when opening with Excel. See the following error log output. I can upload a copy of the generated file is required. The file seems to open fine but it's a bit annoying getting this message.
Repair Result to XXXX Extract 2020-01-17_2307480.xml
@jmcnamara commented on GitHub (Jan 17, 2020):
Yes, if you can. If it contains confidential information you can email it to me instead.
A small program that reproduces the issue would be better. Or if you can debug it then strip your program down until the error goes away.
It isn't a very common issue but things that can cause it are:
@duncangroenewald commented on GitHub (Jan 18, 2020):
Thanks, it was being caused by Swift Double values that were NaN. I would think it should handle that - i.e. convert to something Excel understands. As it is I fixed it by adding a check for Nan and don't write out the value.
@jmcnamara commented on GitHub (Jan 18, 2020):
It is hard to detect NaN portably in C. Also Excel doesn't have a representation for NaN (outside of a formula result).
I think that is the best approach for now.