-
Notifications
You must be signed in to change notification settings - Fork 25
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 export files require repair #514
Comments
@adityadharne you noted a problem with JSON exports, can you describe it here? |
@adityadharne Which application are you using to open to JSON document? |
@kerchner using Firefox with JSONView |
That's because it is a line-oriented JSON file, which isn't valid JSON. Each of the lines is valid JSON. |
👍 |
@kerchner could you send me the file that can't open? |
sent via email |
thanks! |
The detail of the issue for |
For the elif isinstance(value, STRING_TYPES):
value = self.check_string(value)
self.data_type = self.TYPE_STRING
if len(value) > 1 and value.startswith("="):
self.data_type = self.TYPE_FORMULA
elif value in self.ERROR_CODES:
self.data_type = self.TYPE_ERROR
elif self.guess_types:
value = self._infer_value(value) Whether we should consider using xlsxwriter to write xlsx, it supports to disable convert string to formula. I think the big difference between |
For this issue, adding a single quote before and after the |
Test after PR for #588 is merged |
@kerchner you can retest the formula issue for twitter export when PR gwu-libraries/sfm-twitter-harvester#30 and gwu-libraries/sfm-utils#27 are merged. |
I tested and this works for xlsx, but not csv. |
Opening every Excel export from SFM on my Mac consistently results in
The file can be repaired and seems to behave well after that, but we are probably not creating it correctly.
The text was updated successfully, but these errors were encountered: