<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: tFileUnarchive - How to know if the zip is invalid or has no entries? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373653#M136355</link>
    <description>&lt;P&gt;Hi all&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I still have the same issue, and can't find my way around it. Althouth the iterate solution seems to work, it has two problems:&lt;/P&gt;
&lt;OL&gt;
 &lt;LI&gt;It will run whatever comes next as many times as the number of files you have found inside the zip file. Eg. If next step is to create a file and send an email, it will do it 200 times if the zip file has 200 files inside&lt;/LI&gt;
 &lt;LI&gt;It doesn't allow me to be warned if the zip file is corrupt, so I can go and solve whatever is wrong.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my case, I am downloading a zip file from and FTP server, extracting the content, processing a json file which is inside and then creating and emailing an excel file. Now, if the zip file is corrupted, I have no view of that, which is what I am after.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any new ideas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2019 09:47:33 GMT</pubDate>
    <dc:creator>offcourse2</dc:creator>
    <dc:date>2019-10-29T09:47:33Z</dc:date>
    <item>
      <title>tFileUnarchive - How to know if the zip is invalid or has no entries?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373638#M136340</link>
      <description>Hello,
&lt;BR /&gt;I have a question concerning the tFileUnarchiveComponent.&amp;nbsp; I'm using it on some zip files, some of which may be invalid and some of which may have no entries.&amp;nbsp; I would like to link to a component when an invalid zip file is encountered and I'd like to know if there are no rows (ie. no files) from a particular zip.
&lt;BR /&gt;(Surprisingly, the onComponentError flow is not activated when there is an invalid zip.)
&lt;BR /&gt;I'd be very grateful for any links to solutions or ideas for alternatives...
&lt;BR /&gt;Thanks!</description>
      <pubDate>Thu, 11 Aug 2016 14:36:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373638#M136340</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-11T14:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: tFileUnarchive - How to know if the zip is invalid or has no entries?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373639#M136341</link>
      <description>Hi,&lt;BR /&gt;Could you please take a look at component&amp;nbsp;&lt;A href="https://help.talend.com/search/all?query=tFileProperties&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:tFileProperties&lt;/A&gt;&amp;nbsp;which&amp;nbsp;&lt;FONT face="noto, Helvetica, Arial, sans-serif"&gt;obtains information about the main properties of a defined file.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="noto, Helvetica, Arial, sans-serif"&gt;There is &amp;nbsp;a "size" schema (the file size in bytes). You can use it to check your invalid file with no entry(the file size should be 0).&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Fri, 12 Aug 2016 04:59:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373639#M136341</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-12T04:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: tFileUnarchive - How to know if the zip is invalid or has no entries?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373640#M136342</link>
      <description>Hi Sabrina,&lt;BR /&gt;Thanks for the reply.&amp;nbsp; So I can use this component to determine if a zip file is empty.&amp;nbsp; But what if a zip file is corrupt and can't be opened by the tFileUnarchive component?&amp;nbsp; Is there any way of knowing this?&amp;nbsp; The component logs an error but the onComponentError does not seem to be called when the archive is invalid...&amp;nbsp;&amp;nbsp;&lt;BR /&gt;François</description>
      <pubDate>Fri, 12 Aug 2016 07:49:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373640#M136342</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-12T07:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: tFileUnarchive - How to know if the zip is invalid or has no entries?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373641#M136343</link>
      <description>Hi,&lt;BR /&gt;What's kind of component error message you are getting?&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="noto, Helvetica, Arial, sans-serif"&gt;OnComponentError&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT face="noto, Helvetica, Arial, sans-serif"&gt;&amp;nbsp;will trigger the sub-job or component as soon as an error is encountered in the primary Job&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="noto, Helvetica, Arial, sans-serif"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="noto, Helvetica, Arial, sans-serif"&gt;Sabrina&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Fri, 12 Aug 2016 10:14:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373641#M136343</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-12T10:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: tFileUnarchive - How to know if the zip is invalid or has no entries?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373642#M136344</link>
      <description>When using a corrupt zip, the tFileUnarchive component writes "archive is not a ZIP archive" in the log.&amp;nbsp; If "Check the integrity before unzip" is checked then it writes "The file &amp;lt;xxx&amp;gt; is corrupted, process terminated..." to the log.&lt;BR /&gt;But in neither case is the onComponentError triggered.&amp;nbsp; I was expecting to be able to use that trigger to determine that an archive is invalid...&lt;BR /&gt;Thanks,&lt;BR /&gt;François</description>
      <pubDate>Fri, 12 Aug 2016 11:40:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373642#M136344</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-12T11:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: tFileUnarchive - How to know if the zip is invalid or has no entries?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373643#M136345</link>
      <description>I was able to trigger onComponentError execution by checking "Die on Error" in tFileUnarchive's settings. Will that help you?</description>
      <pubDate>Fri, 12 Aug 2016 15:59:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373643#M136345</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2016-08-12T15:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: tFileUnarchive - How to know if the zip is invalid or has no entries?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373644#M136346</link>
      <description>Thanks.&amp;nbsp; That would be logical.&amp;nbsp; I tried that but am still just getting an error in the log and the onComponentError does not get triggered.&amp;nbsp; Maybe I'm missing some global configuration - will look into that possibility...
&lt;BR /&gt;Thanks again.</description>
      <pubDate>Fri, 12 Aug 2016 16:25:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373644#M136346</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-12T16:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: tFileUnarchive - How to know if the zip is invalid or has no entries?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373645#M136347</link>
      <description>Hi&amp;nbsp;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;François.&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;Is there any update for your issue?&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;Sabrina&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Mon, 15 Aug 2016 08:20:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373645#M136347</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-15T08:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: tFileUnarchive - How to know if the zip is invalid or has no entries?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373646#M136348</link>
      <description>Hi Sabrina,&lt;BR /&gt;I tried cterenzi's solution but if I check "Die on error" the onComponentError still does not get triggered.&amp;nbsp; Is this behavior that can be configured?&lt;BR /&gt;Regards,&lt;BR /&gt;François</description>
      <pubDate>Thu, 18 Aug 2016 10:07:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373646#M136348</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-18T10:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: tFileUnarchive - How to know if the zip is invalid or has no entries?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373647#M136349</link>
      <description>Hi,&lt;BR /&gt;Would you mind sending an invalid zip file(corrupt, can not open by&amp;nbsp;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;tFileUnarchive component&lt;/FONT&gt;&lt;/FONT&gt;)to us? In this way, we can make a simple testing for your use case.&lt;BR /&gt;Is your job design:&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;tFileUnarchive--&amp;gt;oncomponenterror--&amp;gt;tfileinputproperties?&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Sabrina&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Thu, 18 Aug 2016 10:15:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373647#M136349</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-18T10:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: tFileUnarchive - How to know if the zip is invalid or has no entries?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373648#M136350</link>
      <description>I use any file that is not a zip file (e.g. the one attached).&amp;nbsp; The tFileUnarchive component logs "archive is not a ZIP archive" when "Check the integrity before unzip" is unchecked.&amp;nbsp; When that option is checked then I get "The file C:/tools/talend_workspace/archive.zip is corrupted, process terminated...".&lt;BR /&gt;In neither case does the OnComponentError get triggered.&lt;BR /&gt;archive.zip_20160822-0440.zip</description>
      <pubDate>Mon, 22 Aug 2016 12:41:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373648#M136350</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-22T12:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: tFileUnarchive - How to know if the zip is invalid or has no entries?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373649#M136351</link>
      <description>Hi,&lt;BR /&gt;The attachment you provided is not avaliable on talend forum. Could you please take a look at it?&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Wed, 24 Aug 2016 09:50:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373649#M136351</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-24T09:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: tFileUnarchive - How to know if the zip is invalid or has no entries?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373650#M136352</link>
      <description>Hi,&lt;BR /&gt;The zip may have been blocked by my firewall.&amp;nbsp; It doesn't matter, you can use any file that is not a zip file e.g. Take a jpg and rename it .zip to obtain an invalid zip file.&amp;nbsp; When you try to unzip it with the tFileUnarchive component you will get the behavior described in my previous post i.e. OnComponentError does not get triggered.&lt;BR /&gt;Best,&lt;BR /&gt;François</description>
      <pubDate>Tue, 30 Aug 2016 10:05:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373650#M136352</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-30T10:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: tFileUnarchive - How to know if the zip is invalid or has no entries?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373651#M136353</link>
      <description>&lt;P&gt;Hi Francois,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I don't think the tFileUnarchive component, as standard, will allow you to do what you want. The only semi-sensible solution I could come up with, was to enable the "Use archive file name as root directory" option, then once the component has unzipped the archive, successfully or not, is to then check the number of files in the resulting sub-directory. If this is 0, then the archive was corrupt/unzippable.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Mon, 21 May 2018 15:06:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373651#M136353</guid>
      <dc:creator>David_Beaty</dc:creator>
      <dc:date>2018-05-21T15:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: tFileUnarchive - How to know if the zip is invalid or has no entries?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373652#M136354</link>
      <description>&lt;P&gt;Old thread, but I had a similar issue.&amp;nbsp; Solved it by using an iterate.&amp;nbsp; Since tFileUnarchive will only iterate if it unzips something, you can hang a tJava off of it, and set some variable like "GoodZip" which then only gets set if it found unzipped at least one file.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 19:46:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373652#M136354</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-02T19:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: tFileUnarchive - How to know if the zip is invalid or has no entries?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373653#M136355</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I still have the same issue, and can't find my way around it. Althouth the iterate solution seems to work, it has two problems:&lt;/P&gt;
&lt;OL&gt;
 &lt;LI&gt;It will run whatever comes next as many times as the number of files you have found inside the zip file. Eg. If next step is to create a file and send an email, it will do it 200 times if the zip file has 200 files inside&lt;/LI&gt;
 &lt;LI&gt;It doesn't allow me to be warned if the zip file is corrupt, so I can go and solve whatever is wrong.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my case, I am downloading a zip file from and FTP server, extracting the content, processing a json file which is inside and then creating and emailing an excel file. Now, if the zip file is corrupted, I have no view of that, which is what I am after.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any new ideas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 09:47:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373653#M136355</guid>
      <dc:creator>offcourse2</dc:creator>
      <dc:date>2019-10-29T09:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: tFileUnarchive - How to know if the zip is invalid or has no entries?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373654#M136356</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPikAAG"&gt;@offcourse2&lt;/A&gt;&amp;nbsp;-- you're correct.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For #1, I solved this by hanging a tJava off of the iterate that sets a "GoodZip" global variable to true.&amp;nbsp; It doesn't matter whether that sets it to true 200 times.&amp;nbsp; You can then hang your real logic off of a RunIf that checks for the GoodZip variable, and it will only run once.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For #2, maybe you create another RunIf where if the zip file exists, but "GoodZip" is false (i.e. it never iterated), than the file must be corrupt.&amp;nbsp; Just a thought.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 13:30:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileUnarchive-How-to-know-if-the-zip-is-invalid-or-has-no/m-p/2373654#M136356</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-29T13:30:38Z</dc:date>
    </item>
  </channel>
</rss>

