<?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 Fail the job when no rows returned in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Fail-the-job-when-no-rows-returned/m-p/2349832#M116760</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm new to Talend.&lt;/P&gt;&lt;P&gt;I'm looking to create job where it exits (or fails with return code 1) when no rows are returned and succeeds if there's data in source table.&lt;/P&gt;&lt;P&gt;I tried a couple of approaches but they're not working. appreciate if someone can help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jul 2018 00:57:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-07-13T00:57:28Z</dc:date>
    <item>
      <title>Fail the job when no rows returned</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fail-the-job-when-no-rows-returned/m-p/2349832#M116760</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm new to Talend.&lt;/P&gt;&lt;P&gt;I'm looking to create job where it exits (or fails with return code 1) when no rows are returned and succeeds if there's data in source table.&lt;/P&gt;&lt;P&gt;I tried a couple of approaches but they're not working. appreciate if someone can help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 00:57:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fail-the-job-when-no-rows-returned/m-p/2349832#M116760</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-13T00:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Fail the job when no rows returned</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fail-the-job-when-no-rows-returned/m-p/2349833#M116761</link>
      <description>&lt;P&gt;Hi&lt;/P&gt; 
&lt;P&gt;You can use a tDie to die the job and customize the error message and error code. eg;&lt;/P&gt; 
&lt;P&gt;tMysqlInput--main--tJavaRow&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;-runIf--tDie&lt;/P&gt; 
&lt;P&gt;Set the condition of runIf as:&lt;/P&gt; 
&lt;P&gt;((Integer)globalMap.get("tMysqlInput_1_NB_LINE"))==0&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards&lt;/P&gt; 
&lt;P&gt;Shong&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jul 2018 03:41:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fail-the-job-when-no-rows-returned/m-p/2349833#M116761</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-14T03:41:21Z</dc:date>
    </item>
  </channel>
</rss>

