Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Opening bad Excel files

by Tux (Canon)
on Feb 21, 2018 at 10:51 UTC ( [id://1209653]=note: print w/replies, xml ) Need Help??


in reply to Opening bad Excel files

There is a lot of environmental settings missing in your question. As others already found: do not use Spreadsheet::XLSX, but Spreadsheet::ParseXLSX.

When I fetch your file, I can verify the reason to change the parser

use Spreadsheet::Read; my $ss = Spreadsheet::Read->new ("pm1209625.xlsx", debug => 3);

$ perl pm1209625.pl Opening XLSX pm1209625.xlsx using Spreadsheet::ParseXLSX-0.27 4 sheets Sheet 2 'Cities' 215 x 1 Sheet 3 'Categories' 22 x 1 Sheet 4 'Items' 187 x 2 Sheet 5 'VehicleTypes' 14 x 1 $ env SPREADSHEET_READ_XLSX=Spreadsheet::XLSX perl pm1209625.pl Opening XLSX pm1209625.xlsx using Spreadsheet::XLSX-0.15 0 sheets

A short digging revealed that the parser only accepts xml tags sheet, where your workbook has tags /x:workbook at that level (XLSX.pm line 53).

It is IMHO a lost cause to file a ticket.


Enjoy, Have FUN! H.Merijn

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1209653]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2024-04-19 08:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found