<?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 How to detect &amp;quot;No Rows&amp;quot; in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-detect-quot-No-Rows-quot/m-p/2336517#M104952</link>
    <description>I am using the "tMap" component to join together several hash tables.&lt;BR /&gt;How can I detect that the join of the hash tables has resulted in "no rows?"&lt;BR /&gt;I would like to generate an e-mail when this happens.&lt;BR /&gt;Thanks&lt;BR /&gt;Peter</description>
    <pubDate>Mon, 21 Apr 2014 22:12:29 GMT</pubDate>
    <dc:creator>PD2</dc:creator>
    <dc:date>2014-04-21T22:12:29Z</dc:date>
    <item>
      <title>How to detect "No Rows"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-detect-quot-No-Rows-quot/m-p/2336517#M104952</link>
      <description>I am using the "tMap" component to join together several hash tables.&lt;BR /&gt;How can I detect that the join of the hash tables has resulted in "no rows?"&lt;BR /&gt;I would like to generate an e-mail when this happens.&lt;BR /&gt;Thanks&lt;BR /&gt;Peter</description>
      <pubDate>Mon, 21 Apr 2014 22:12:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-detect-quot-No-Rows-quot/m-p/2336517#M104952</guid>
      <dc:creator>PD2</dc:creator>
      <dc:date>2014-04-21T22:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect "No Rows"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-detect-quot-No-Rows-quot/m-p/2336518#M104953</link>
      <description>Hi Peter 
&lt;BR /&gt;Link the output table from tMap to a tJavaFlex component, and use runIf connector to trigger the email component if the result of join is 0. For example: 
&lt;BR /&gt;....tMap--main--tJavaFlex 
&lt;BR /&gt; | 
&lt;BR /&gt;runIf 
&lt;BR /&gt; | 
&lt;BR /&gt;tSendMail 
&lt;BR /&gt;in the begin part of tJavaFlex, define a counter. 
&lt;BR /&gt;int nb_line=0; 
&lt;BR /&gt;in the main part of tJavaFlex, the counter will +1 if there comes an input row. 
&lt;BR /&gt;nb_line++; 
&lt;BR /&gt;in the end part of tJavaFlex, check the number of the counter if it is great than 0 or not, and store the result to a global variable for used later. 
&lt;BR /&gt;if(nb_line==0){ 
&lt;BR /&gt;globalMap.put("isNoRow",true); 
&lt;BR /&gt;}else{ 
&lt;BR /&gt;globalMap.put("isNoRow",false); 
&lt;BR /&gt;} 
&lt;BR /&gt;Set the condition of runIf with the global varaible, 
&lt;BR /&gt;(Boolean)globalMap.get('isNoRow") 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 22 Apr 2014 02:40:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-detect-quot-No-Rows-quot/m-p/2336518#M104953</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-22T02:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect "No Rows"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-detect-quot-No-Rows-quot/m-p/2336519#M104954</link>
      <description>Hi Peter, 
&lt;BR /&gt;- I have one more small Idea, Use a context variable as cnt and set its default value to 0. 
&lt;BR /&gt;- Use simple tjavarow at the output for that join and put following code 
&lt;BR /&gt;context.cnt = context.cnt +1; 
&lt;BR /&gt;Connect tSendMail component from tjavarow with condition RunIf having condition context.cnt == 0; 
&lt;BR /&gt; 
&lt;BR /&gt;Check sample screenshot, you will get an idea for this. 
&lt;BR /&gt;Vaibhav 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDlm.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152886i56B555C3CC4FBD33/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDlm.jpg" alt="0683p000009MDlm.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 22 Apr 2014 06:01:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-detect-quot-No-Rows-quot/m-p/2336519#M104954</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-22T06:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect "No Rows"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-detect-quot-No-Rows-quot/m-p/2336520#M104955</link>
      <description>Thanks for the ideas guys.  I will try both.&lt;BR /&gt;Thanks!!!&lt;BR /&gt;Peter</description>
      <pubDate>Tue, 22 Apr 2014 09:33:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-detect-quot-No-Rows-quot/m-p/2336520#M104955</guid>
      <dc:creator>PD2</dc:creator>
      <dc:date>2014-04-22T09:33:05Z</dc:date>
    </item>
  </channel>
</rss>

