<?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: [resolved] How to test if tMap output has rows? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-test-if-tMap-output-has-rows/m-p/2312021#M83005</link>
    <description>Hi again,
&lt;BR /&gt;I finally managed to get the needed behavior from my job, I attach the screenshot, but I wonder:
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;is there any way to optimise it?&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;I suspect the answer is YES, and I am looking forward for your advice.
&lt;BR /&gt;Thank you for helping a beginner to improve his style.
&lt;BR /&gt;Furnica</description>
    <pubDate>Sun, 30 Aug 2009 10:06:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-08-30T10:06:15Z</dc:date>
    <item>
      <title>[resolved] How to test if tMap output has rows?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-test-if-tMap-output-has-rows/m-p/2312020#M83004</link>
      <description>Hello, 
&lt;BR /&gt;I need a hand on this problem I got: 
&lt;BR /&gt;I have a tMap component, with two outputs: 
&lt;BR /&gt; 1. the regular output table, returning a single record if the expression filter is met, and 
&lt;BR /&gt; 2. the output reject table, returning a single record if the above expression filter is not met. 
&lt;BR /&gt;My goal is that, if the regular output HAS a row, then continue processing; that means that the output reject has NO records. 
&lt;BR /&gt;On the other hand, if the output reject has a record, which means the regular output has no records, I want to kill my job. 
&lt;BR /&gt;I do not manage to do this, because in either cases both actions are performed. 
&lt;BR /&gt;If I could test the number of rows of the tMap outputs, I could implement a "Run If" condition, but I do not know how to build the test. 
&lt;BR /&gt;Can anybody guide me how to do this? 
&lt;BR /&gt;I attach screenshots of the job, I am grateful for any suggestion.</description>
      <pubDate>Sat, 16 Nov 2024 13:47:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-test-if-tMap-output-has-rows/m-p/2312020#M83004</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to test if tMap output has rows?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-test-if-tMap-output-has-rows/m-p/2312021#M83005</link>
      <description>Hi again,
&lt;BR /&gt;I finally managed to get the needed behavior from my job, I attach the screenshot, but I wonder:
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;is there any way to optimise it?&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;I suspect the answer is YES, and I am looking forward for your advice.
&lt;BR /&gt;Thank you for helping a beginner to improve his style.
&lt;BR /&gt;Furnica</description>
      <pubDate>Sun, 30 Aug 2009 10:06:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-test-if-tMap-output-has-rows/m-p/2312021#M83005</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-30T10:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to test if tMap output has rows?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-test-if-tMap-output-has-rows/m-p/2312022#M83006</link>
      <description>Hello 
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;On the other hand, if the output reject has a record, which means the regular output has no records, I want to kill my job.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Yes, you get the correct approach to reach your goal with runIf link and global vars. But why you link tJavaRow to tDie in your last image? I think you only need link the reject output to tDie and set the condition as: tLogRow_NB&amp;gt;0
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Mon, 31 Aug 2009 03:25:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-test-if-tMap-output-has-rows/m-p/2312022#M83006</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-31T03:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to test if tMap output has rows?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-test-if-tMap-output-has-rows/m-p/2312023#M83007</link>
      <description>Thank you Shong, you are right.
&lt;BR /&gt;Best regards,
&lt;BR /&gt;Furnica</description>
      <pubDate>Mon, 31 Aug 2009 09:44:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-test-if-tMap-output-has-rows/m-p/2312023#M83007</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-08-31T09:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to test if tMap output has rows?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-test-if-tMap-output-has-rows/m-p/2312024#M83008</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please attach the screenshot of your solution. I am unable to see any screenshot in the original thread.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks much in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 11:25:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-test-if-tMap-output-has-rows/m-p/2312024#M83008</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-19T11:25:44Z</dc:date>
    </item>
  </channel>
</rss>

