Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Error: Bad Zip File

Hello,

When I load my script, I have a "bad zip file" error. Is there a typical reason for this kind of error? My script seems to work even with the error... but I would like to solve it anyway.

I load three different kinds of files with a loop and I have the error message at the beginning of each loop.

Thank you for your help!

1 Solution

Accepted Solutions
Not applicable
Author

Hi everybody, I found the error. The files came automatically from a program generating excel files and for this reason there was some special format which weren't recognised I think... I had to copy paste the values in a new excel file. Now it works. Thank you for your help.

View solution in original post

16 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Because one of your files is cripted (rar or zip or something else) and cannot be read

jaimeaguilar
Partner - Specialist II
Partner - Specialist II

Hi,

Are you getting this error message?

badzip.png

if yes, then it is happens because you're trying to load a file extension with wrong syntax. For example trying to load a xlsx with the syntax of a xls file will cause this error. Just double check that you're loading your data with the correct syntax,

regads

Not applicable
Author

This is the error message I get:

erreur.png

All the files I load are "xlsx" and the syntax for loading them is also "xlsx"... I don't think they are cripted but how can I control that?

ashfaq_haseeb
Champion III
Champion III

Is your sheet password protected?

Regards

ASHFAQ

amit_saini
Master III
Master III

Hi Anne,

It may be possibility that source sheet is corrupted if not  than in document properties enable generate log file (in general file). While reloading a log file is create which can be helpful to spot the defective excel file. Along with the error description.

Thanks,

AS

Not applicable
Author

No it isn't. How do I know if the source sheet is corrupted? I created a log file but it doesn't help me more...

ashfaq_haseeb
Champion III
Champion III

Can you try by replacing it with another excel file.

or

try by copying content from old xl to new xl.

Regards

ASHFAQ

sudeepkm
Specialist III
Specialist III

maybe one of your source files are xls (97 - 2003 format) file but the extension just changed to xlsx. can you please save all your source files as xlsx and try to load.

Not applicable
Author

I juste did this, as you suggested, and it still doesn't work... I saved all files as xslx...

Thank you everybody for your help and your answer... I hope we can find the solution!