Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Hit Zip bomb detected when using tFileInputExcel

Hi

I'm trying to read an excel worksheet (80 col x 80 row) from an excel file which is about 1MB in size and it contains other worksheets which I am not required to read.

I kept hitting a zip bomb detected exception (see image attached) when opening up this particular sheet. How can I troubleshoot what caused this exception and is there any configurations which I can tweak to handle this file?

 

 

Labels (2)
5 Replies
Anonymous
Not applicable
Author

Hello,

Could you please try to extract data from specific Excel cells rather than all of the data in the file to see if it works?

Here is a related article about:https://community.talend.com/t5/Design-and-Development/Extracting-data-from-specific-Excel-cells/ta-...

Best regards

Sabrina

 

Anonymous
Not applicable
Author

Hi Sabrina

 

Thanks for your reply. I think I'm not even able to open the excel file in the first place. The IO exception was thrown upon opening the file. However, when I copied the required worksheet and save into a new file, I'm able to read the worksheet properly.

 

 

Anonymous
Not applicable
Author

Hello,

You cannot open file by using tFileInputExcel component? Excel 2007 file format? Have you tried to create a file excel metadata to see if it works?

TalendHelpCenter:Centralizing File Excel metadata

Best regards

Sabrina

Anonymous
Not applicable
Author

Hello,

 

You can bypass this safety mechanism by adding a tJava with the following content.

org.apache.poi.openxml4j.util.ZipSecureFile.setMinInflateRatio(-1.0d);

Please note that this will not affect the Excel Metadata browser, so that might not work, but the actual ETL jobs should.

Luiz_Filipe
Contributor
Contributor

Adding my 2 cents here, maybe someone is having this issue, I am using Talend 8 and this setup did the trick for me, when getting the zip bomb error reading excel files:

0695b00000qR80rAAC.png