<?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 abort job when duplicates are found in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/abort-job-when-duplicates-are-found/m-p/2277476#M53247</link>
    <description>&lt;P&gt;Hi, I have a situation when I have to abort the job when the duplicates are found and not load it to output file.&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have below&amp;nbsp;logic:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In case duplicates are found, the job dies. but in case there are no duplicates, the job doesnt load the output file.&amp;nbsp; I pass a dummy variable on tfixedflowinput(which i think i m doing wrong), as it doesnt update the file with 4 fields from source. how to do it..? Thanks!&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic.png" style="width: 879px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0aD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149408i6D92385943476C0C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0aD.png" alt="0683p000009M0aD.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Oct 2018 14:16:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-10-23T14:16:33Z</dc:date>
    <item>
      <title>abort job when duplicates are found</title>
      <link>https://community.qlik.com/t5/Talend-Studio/abort-job-when-duplicates-are-found/m-p/2277476#M53247</link>
      <description>&lt;P&gt;Hi, I have a situation when I have to abort the job when the duplicates are found and not load it to output file.&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have below&amp;nbsp;logic:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In case duplicates are found, the job dies. but in case there are no duplicates, the job doesnt load the output file.&amp;nbsp; I pass a dummy variable on tfixedflowinput(which i think i m doing wrong), as it doesnt update the file with 4 fields from source. how to do it..? Thanks!&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pic.png" style="width: 879px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0aD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149408i6D92385943476C0C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0aD.png" alt="0683p000009M0aD.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 14:16:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/abort-job-when-duplicates-are-found/m-p/2277476#M53247</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-23T14:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: abort job when duplicates are found</title>
      <link>https://community.qlik.com/t5/Talend-Studio/abort-job-when-duplicates-are-found/m-p/2277477#M53248</link>
      <description>&lt;P&gt;it is better to make use of the after variables of the tUniqRow which tells the number of uniques and number of duplicates found from input , you can keep the uniques in temporary and update only if the number of duplicates are zero, and yes tFixFlowInput would not work that way&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 15:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/abort-job-when-duplicates-are-found/m-p/2277477#M53248</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-23T15:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: abort job when duplicates are found</title>
      <link>https://community.qlik.com/t5/Talend-Studio/abort-job-when-duplicates-are-found/m-p/2277478#M53249</link>
      <description>&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DieIfAbort.JPG" style="width: 834px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0XE.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135732i17D1A046ADDC1F5F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0XE.jpg" alt="0683p000009M0XE.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;something like this would work i guess&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 15:51:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/abort-job-when-duplicates-are-found/m-p/2277478#M53249</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-23T15:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: abort job when duplicates are found</title>
      <link>https://community.qlik.com/t5/Talend-Studio/abort-job-when-duplicates-are-found/m-p/2277479#M53250</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOtOAAW"&gt;@CK395&lt;/A&gt;, can u give export of this job?&lt;/P&gt;
&lt;P&gt;when i do IF, it doesnt give me option of tdie. is there anything special u did..? Neither do i get option for thashinput &amp;amp; thashoutput&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 16:14:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/abort-job-when-duplicates-are-found/m-p/2277479#M53250</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-23T16:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: abort job when duplicates are found</title>
      <link>https://community.qlik.com/t5/Talend-Studio/abort-job-when-duplicates-are-found/m-p/2277480#M53251</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Here is an alternate option to resolve your problem. Add a context variable "&lt;SPAN&gt;row_count" in integer format.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Job details with taggregate component details" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0ab.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128858i0FA103410F0BCA32/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0ab.png" alt="0683p000009M0ab.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Job details with taggregate component details&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-center" image-alt="loading count to a context variable" style="width: 995px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0VI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143390i78714EBFB0C9DD9D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0VI.png" alt="0683p000009M0VI.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;loading count to a context variable&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The tjava component connected to On Subjob Ok is dummy. The if component connected to tDie is :-&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;context.row_count !=0&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;and the if condition connected to the next flow will be having the condition&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;context.row_count ==0&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 17:31:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/abort-job-when-duplicates-are-found/m-p/2277480#M53251</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-23T17:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: abort job when duplicates are found</title>
      <link>https://community.qlik.com/t5/Talend-Studio/abort-job-when-duplicates-are-found/m-p/2277481#M53252</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/00539000006eKOgAAM"&gt;@nthampi&lt;/A&gt;&amp;nbsp;- Thanks for the logic. what did u put in tfixedflow input..?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 20:52:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/abort-job-when-duplicates-are-found/m-p/2277481#M53252</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-23T20:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: abort job when duplicates are found</title>
      <link>https://community.qlik.com/t5/Talend-Studio/abort-job-when-duplicates-are-found/m-p/2277482#M53253</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I didn't notice that earlier skeleton diagram was missing the data capture of unique records.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You can store the unique records in a format of your choice (either as file or hash) and read them later for downstream processing.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="screeshot.jpg" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0b0.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151831i7207F67162E1378B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0b0.jpg" alt="0683p000009M0b0.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If the answer has helped to answer your query, please mark the topic as resolved. Kudos are also welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 05:46:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/abort-job-when-duplicates-are-found/m-p/2277482#M53253</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-24T05:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: abort job when duplicates are found</title>
      <link>https://community.qlik.com/t5/Talend-Studio/abort-job-when-duplicates-are-found/m-p/2277483#M53254</link>
      <description>&lt;P&gt;my bad i didn't see the choose files button earlier,&lt;/P&gt;&lt;P&gt;Anyways, the job is attached, make sure to change the file paths and&amp;nbsp;configure components according to your schema.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let me know if it fulfilled your requirement or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chandra Kant&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lu2y"&gt;DieIFDuplicate.zip&lt;/A&gt;</description>
      <pubDate>Wed, 24 Oct 2018 08:18:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/abort-job-when-duplicates-are-found/m-p/2277483#M53254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-24T08:18:51Z</dc:date>
    </item>
  </channel>
</rss>

