Summary: | Unable to correctly read data in XLSX file | ||
---|---|---|---|
Product: | POI | Reporter: | Rob <robert.owen> |
Component: | XSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 3.14-FINAL | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All | ||
Attachments: |
Suporting docs with xlsx files
Full data that will not open Full data saved by excel Smaller file that does not work |
Description
Rob
2016-06-23 09:22:56 UTC
Created attachment 33977 [details]
Suporting docs with xlsx files
I cannot attached the larger files as it goes over the allowed file size.
Created attachment 33978 [details]
Full data that will not open
Created attachment 33979 [details]
Full data saved by excel
The problem is that all the rows in your file neglect to say which one they are! In a normal file, the sheet xml should be like: <x:sheetData> <x:row r="1"> <x:c r="A1" t="str"> <x:v>Destination</x:v> </x:c> <x:c r="B1" t="str"> <x:v>Dial Code</x:v> </x:c> </x:row> <x:row r="2"> <x:c r="A2" t="str"> <x:v>Abkhazia - Fixed</x:v> </x:c> <x:c r="B2" t="str"> <x:v>7840</x:v> </x:c> Where each row indicates the row number. However, in your files, the row numbers are missing: <x:sheetData> <x:row hidden="0" outlineLevel="0" collapsed="0"> <x:c s="1" t="inlineStr"> <x:is> <x:t>Checked</x:t> </x:is> </x:c> <x:c s="1" t="inlineStr"> <x:is> <x:t>Ion</x:t> </x:is> </x:c> </x:row> <x:row hidden="0" outlineLevel="0" collapsed="0"> <x:c s="4" t="b"> <x:v>1</x:v> </x:c> <x:c s="4" t="inlineStr"> <x:is> <x:t>[M+H]+1</x:t> </x:is> </x:c> My guess is that Excel assumes that a row with no row number should be treated as the next row, and if all have no row number start from row 1. Any chance you could produce a much smaller problematic excel file from the other software, perhaps with just a few 10s of lines, which we could use for unit testing and a possible fix? Thanks for the rapid follow up. I will find a smaller file and attached it ASAP Created attachment 33980 [details]
Smaller file that does not work
Here is a smaller file. Software did not make it easy so it might be slightly biger than you were hoping
|