Skip to content
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

Can't call method "att" on an undefined value at ....share/perl/site_perl/Spreadsheet/ParseXLSX.pm line 545. #23

Closed
27484274 opened this issue Apr 27, 2014 · 11 comments

Comments

@27484274
Copy link

I am trying to load a XLSX file and I am getting this issue. This issue seems to be addressed in previous release but re-emerging in this release.

I have the PERL installed on UNIX (Sun Solaris 10) box. The web page calls the CGI script which ftps the file in binary and then tries to parse it through Spreadsheet::Read which in turn uses ParseXLSX

Please see the extract for ParseXLSX version.

package Spreadsheet::ParseXLSX;
BEGIN {
$Spreadsheet::ParseXLSX::AUTHORITY = 'cpan:DOY';
}
$Spreadsheet::ParseXLSX::VERSION = '0.14';
use strict;
use warnings;

capture

@doy
Copy link
Owner

doy commented May 8, 2014

Can you give me an example Excel file which produces this error?

@27484274
Copy link
Author

27484274 commented May 8, 2014

I am giving you two files. Both encountered the same error. 
On Thursday, May 8, 2014 1:32 PM, Jesse Luehrs notifications@github.com wrote:

Can you give me an example Excel file which produces this error?

Reply to this email directly or view it on GitHub.

@doy
Copy link
Owner

doy commented May 8, 2014

Github doesn't support attachments in email comments - can you email them to me directly?

@27484274
Copy link
Author

27484274 commented May 8, 2014

I am sending it to your tozt.net email. 
On Thursday, May 8, 2014 3:43 PM, Jesse Luehrs notifications@github.com wrote:

Github doesn't support attachments in email comments - can you email them to me directly?

Reply to this email directly or view it on GitHub.

@doy
Copy link
Owner

doy commented May 8, 2014

@doy
Copy link
Owner

doy commented May 8, 2014

I can't reproduce this issue - calling parse on those two spreadsheets works fine for me. Are you doing anything other than my $wb = Spreadsheet::ParseXLSX->new->parse($filename);? What version of perl are you using?

@doy
Copy link
Owner

doy commented May 8, 2014

Also, what version of XML::Twig do you have installed?

@headhacker
Copy link

Same issue for me using exact call as above .. error is
Can't call method "att" on an undefined value at /Library/Perl/5.16/Spreadsheet/ParseXLSX.pm line 56.

XML::Twig is up to date (3.48).
perl -v = 5.16

@wwjnufc
Copy link

wwjnufc commented Jul 4, 2014

i think the parser is looking for a null/non-existent attribute from the xlsx in line 56.
when i randomly fill in all the fields under 'menu'>'prepare'>'doc property' in excel, the error will no longer show up

Update: a generated XLSX might not have any version history meaning it is null. When it is null it causes this error. Even a simple action like opening the xlsx and saving it will stop this error msg. This is from my own testing.

@headhacker
Copy link

Thanks, I'll give it a try. Might be able to generate the history somehow as well.

@doy
Copy link
Owner

doy commented Jul 5, 2014

I've made some changes here - let me know if version 0.16 works better for you.

@doy doy closed this as completed Mar 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants