-
Notifications
You must be signed in to change notification settings - Fork 503
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
.sheet() method returns wrong sheet #166
Comments
Hi @tikitikifoofoo, I'm not a member of the maintainers or anything, but this seemed interesting since I hadn't run into it before. Can you attach a copy of the spreadsheet you're using? I can't seem to reproduce this error using an XLSX sheet of my own. |
Update: so I think I've narrowed the problem to the Zip::File extraction process. It seems like the order in which the sheets are iterated on in the I pried into the Here's a link to the file I'm trying to parse: http://www.filedropper.com/operatingmodelhc |
I wasn't able to access the link to the file. Can you fork the project and add the file to test/files directory? |
I'm closing this issue. @tikitikifoofoo If you get the chance, please provide a copy of your spreadsheet so I can look into the issue. Creating a gist might be the easiest way.
|
Sorry @stevendaniels, I just saw your comments. Here's a gist with the file: https://gist.github.com/tikitikifoofoo/e37872ef6d3fd170008a. We discovered that the problem only seems to happen with spreadsheets downloaded from Google Sheets, which is what I uploaded to the gist. |
Thanks. I did a quick look and confirmed the issue.
This is what sets the order of the sheets in the file when opening it Google or Excel. I imagine the sheets in that spreadsheet where created and then moved into a different order and Google preserved the original sheet order. I'd have to look at other formats, but I suspect that [update: worksheets should be ordered based on |
Hi guys, we've just recently come across this as well. What can we do to help? |
I've spent some more time looking into this issue. My previous comment was wrong. It turns out the following two files determine the sheet order: workbook.xml
workbook.xml.rels
According to these relationships, In order to fix this issue, |
I have a spreadsheet with 7 sheets. But here's what happens:
I get same result if I use an index number
spreadsheet.sheet(0)
The text was updated successfully, but these errors were encountered: