<?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: My OnComponentError  would never be fired? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/My-OnComponentError-would-never-be-fired/m-p/2275155#M51622</link>
    <description>&lt;P&gt;I hope I understand you now.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I created a stand alone job ("unzip_file")&amp;nbsp; with tFileList --Iterate--&amp;gt; tFileUnarchive --OnComponentError -&amp;gt; tJava (Print out error message) . I checked " Die on Error" within tFileUnarchive.&lt;BR /&gt;&lt;BR /&gt;In my original job, I replaced above subjob with a tRunJob component and it calls job "unzip file".&lt;BR /&gt;Leave "Die on child error" unchecked.&lt;BR /&gt;&lt;BR /&gt;I launched the job -- this time, I saw my error message print out my code. BUT, there is one problem: the child job didn't unzip ALL of the files. I believe when it encountered the bad file, it failed and it stopped unzipping the rest of the files.&lt;BR /&gt;&lt;BR /&gt;Please let me know if I did it correctly. Thank you!&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jan 2020 17:41:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-01-30T17:41:04Z</dc:date>
    <item>
      <title>My OnComponentError  would never be fired?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/My-OnComponentError-would-never-be-fired/m-p/2275151#M51618</link>
      <description>&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="001.JPG" style="width: 912px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8VV.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157281i6BFBB27D63FEFC60/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8VV.jpg" alt="0683p000009M8VV.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="002.JPG" style="width: 949px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8wK.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143636iC0309F13B1AB92BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8wK.jpg" alt="0683p000009M8wK.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;P&gt;Please see the design above:&lt;BR /&gt;I want to unzip all .gz files into a "temp" folder. In case if it fails when unzipping one .gz file, I want the filename and error message printed out.&lt;BR /&gt;&lt;BR /&gt;But I also don't want the job to fail when that happens -- so I have &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;"Die on Error" unchecked&lt;/FONT&gt;&lt;/STRONG&gt; in tFileUnarchive step.&lt;BR /&gt;&lt;BR /&gt;I used a fake .gz file (I renamed a regular text file as .gz file) with several real .gz files for testing.&lt;BR /&gt;I don't get the error message at all. I did have something show up in the print out area, but not from my code:&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="003.JPG" style="width: 749px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M80H.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147558i3589A29DAF5884C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M80H.jpg" alt="0683p000009M80H.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Is it because I unchecked "Die on Error" so the OnComponentError would never be fired?&lt;BR /&gt;Does anyone have a good idea to catch the filename and error message when there is a problem unzipping the file, but still let the job continue?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 20:53:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/My-OnComponentError-would-never-be-fired/m-p/2275151#M51618</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-29T20:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: My OnComponentError  would never be fired?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/My-OnComponentError-would-never-be-fired/m-p/2275152#M51619</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;as a variant which is definitely working - put Unzip and error logic into SubJob (tRunJob)&lt;/P&gt; 
&lt;P&gt;Uncheck DieOnChildError, but in the child job use Die On Error for component&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;another variant, use tSystem and If triggers:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="errors_handling.PNG" style="width: 832px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8sj.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131266i6F25A721A51ADB7F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8sj.png" alt="0683p000009M8sj.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="errors_handling_2.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8wP.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129829i844F7536F64ADB3B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8wP.png" alt="0683p000009M8wP.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 21:20:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/My-OnComponentError-would-never-be-fired/m-p/2275152#M51619</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2020-01-29T21:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: My OnComponentError  would never be fired?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/My-OnComponentError-would-never-be-fired/m-p/2275153#M51620</link>
      <description>&lt;P&gt;Thank you so much for your quick response!&lt;BR /&gt;&lt;BR /&gt;But I have problem understanding what you wrote, especially when I'm looking at your design screenshot --&lt;BR /&gt;could you please help create a more understandable job if you have time?&lt;BR /&gt;&lt;BR /&gt;BTW, if I want to use tSystem to unzip a group of&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt; .gz&lt;/FONT&gt; &lt;/STRONG&gt;files, what should the command be?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 22:30:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/My-OnComponentError-would-never-be-fired/m-p/2275153#M51620</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-29T22:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: My OnComponentError  would never be fired?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/My-OnComponentError-would-never-be-fired/m-p/2275154#M51621</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've provided 2 variants:&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;using tRunJob - where all similar to your current design, you just need to relocate 2 components into subjob&lt;/LI&gt;
 &lt;LI&gt;using tSystem, tSystem could run any command or program installed on machine&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;as an example -&amp;nbsp;&lt;A href="http://kb.winzip.com/kb/entry/124/" target="_self" rel="nofollow noopener noreferrer"&gt;http://kb.winzip.com/kb/entry/124/&lt;/A&gt;&amp;nbsp;or&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/41902600/how-would-i-extract-a-gz-file-from-cmd-using-only-commands-built-in-to-windows" target="_self" rel="nofollow noopener noreferrer"&gt;https://stackoverflow.com/questions/41902600/how-would-i-extract-a-gz-file-from-cmd-using-only-commands-built-in-to-windows&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if the execution was successful, error code will be 0, if any error - not 0, and variables will display to you what happens&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cheers,&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 00:21:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/My-OnComponentError-would-never-be-fired/m-p/2275154#M51621</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2020-01-30T00:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: My OnComponentError  would never be fired?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/My-OnComponentError-would-never-be-fired/m-p/2275155#M51622</link>
      <description>&lt;P&gt;I hope I understand you now.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I created a stand alone job ("unzip_file")&amp;nbsp; with tFileList --Iterate--&amp;gt; tFileUnarchive --OnComponentError -&amp;gt; tJava (Print out error message) . I checked " Die on Error" within tFileUnarchive.&lt;BR /&gt;&lt;BR /&gt;In my original job, I replaced above subjob with a tRunJob component and it calls job "unzip file".&lt;BR /&gt;Leave "Die on child error" unchecked.&lt;BR /&gt;&lt;BR /&gt;I launched the job -- this time, I saw my error message print out my code. BUT, there is one problem: the child job didn't unzip ALL of the files. I believe when it encountered the bad file, it failed and it stopped unzipping the rest of the files.&lt;BR /&gt;&lt;BR /&gt;Please let me know if I did it correctly. Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 17:41:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/My-OnComponentError-would-never-be-fired/m-p/2275155#M51622</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-30T17:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: My OnComponentError  would never be fired?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/My-OnComponentError-would-never-be-fired/m-p/2275156#M51623</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LLACAA4"&gt;@Moe&lt;/A&gt;&amp;nbsp;wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;I launched the job -- this time, I saw my error message print out my code. BUT, there is one problem: the child job didn't unzip ALL of the files. I believe when it encountered the bad file, it failed and it stopped unzipping the rest of the files.&lt;BR /&gt;&lt;BR /&gt;Please let me know if I did it correctly. Thank you!&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;you need to run subjob for each file (filename as parameter from parent)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;cheers, Vlad&lt;/P&gt;</description>
      <pubDate>Sun, 02 Feb 2020 21:04:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/My-OnComponentError-would-never-be-fired/m-p/2275156#M51623</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2020-02-02T21:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: My OnComponentError  would never be fired?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/My-OnComponentError-would-never-be-fired/m-p/2275157#M51624</link>
      <description>&lt;P&gt;Thanks! It's working now.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 20:20:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/My-OnComponentError-would-never-be-fired/m-p/2275157#M51624</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-06T20:20:04Z</dc:date>
    </item>
  </channel>
</rss>

