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

Extract a single file from a zip

Hello,

I have a job that uncompress zip files (via tFileUnarchive) and then process the uncompressed xml files.
In each zip file I have about 30000 xml.

I would like to unzip only some of the contained xml, based on the xml file name.

Is there a possibility (without tSystem) ? Maybe am I missing something about xml/zip file manipulation through Talend.

Thank you in advance,

TALEND TOS DI 7.0.1

Ali

 

-- edit : missclick on spoiler box...

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,

 

    If you are using tFileUnarchive component, you will not be able to selectively uncompress the components inside a zip file. It will unzip all the components for the zip file.

 

   So after uncompressing, you can select the files you need and proceed further.

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

5 Replies
Anonymous
Not applicable
Author

Hi,

 

    If you are using tFileUnarchive component, you will not be able to selectively uncompress the components inside a zip file. It will unzip all the components for the zip file.

 

   So after uncompressing, you can select the files you need and proceed further.

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

Anonymous
Not applicable
Author

Thank you Nikhil

 

So there is no possibility without a dirty tSystem 0683p000009MPcz.png

 

In my case, i'm trying to avoid full unzip, it takes 2 min per zip with my i7gen8+nvmeSSD and I have hundreds of zip files.

 

No other alternative component for unarchive ? (if not i'll set to resolved and update the topic title)

Anonymous
Not applicable
Author

@alih 

 

Unfortunately there are no other components available to do the selective uncompression of files. 

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

Anonymous
Not applicable
Author

Unfortunately, I will disappoint you, but there is no such solution.

I was looking for a solution on the Internet and did not find it. I also needed to get 2 essay files from a zip file, which I ordered from Familyessay and which sent me a zip file with a large number of papers that I ordered. I had to get all the files, then delete the extra ones and use the necessary files.

 

Good luck to you.

Anonymous
Not applicable
Author

I'll try to post the tsystem way once I've set it up.