-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
archiveEntryNotFound error #121
Comments
Hi @Davvie, this means that the file doesn't have shared strings in it, all strings are stored as inline. Right now you can catch the error and continue parsing the rest of the data without shared strings. Does that resolve the issue for you? |
You can catch this specific error stay on the safe side: |
Also, would you mind if I include the file that you attached here to the CoreXLSX test suite? |
Hi @MaxDesiatov, thank you for a quick reply. After further testing I found out that Here is an example: import Foundation
import CoreXLSX
let path = ("~/Desktop/Test.xlsx" as NSString).expandingTildeInPath
let file = XLSXFile(filepath: path)!
let workbook = try file.parseWorkbooks()[0]
let sheetPath = try file.parseWorksheetPaths()[0]
let sheet = try file.parseWorksheet(at: sheetPath)
for row in sheet.data?.rows ?? [] {
print(row)
}
Sure, no problem |
Cool, thank you for the sample file! The issue with |
You're welcome. Sure, I've tested this code snippet with 0.13.0, but unfortunately it fails with the same error Here is another sample file which also fails for that snippet |
What is common between these sample files is that they're both either edited or created using Python's |
Ah, that probably explains it. If the file opens in Excel, that still means it's a bug in CoreXLSX, I'm having a closer look now. |
The issue should be fixed in the |
Thank you a lot for the fix and all the hard work you put into CoreXLSX! |
No problem! If you enjoy working with CoreXLSX, please consider sponsoring me on GitHub with monthly donations or on my website with a one-time payment 😉 |
Version
0.12.0
Description of the bug
An
archiveEntryNotFound
error is thrown for certain files (but I couldn't figure out what exactly causes the issue)Steps to reproduce
let file = XLSXFile(filepath: tableFilePath)
)parseSharedStrings
File for reproduction
Test.xlsx
https://tools.hb.bizmrg.com/Test.xlsx
The text was updated successfully, but these errors were encountered: