<?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: tFileRowCount, read &amp;quot;0 rows&amp;quot; without &amp;quot;null pointer exception&amp;quot; in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFileRowCount-read-quot-0-rows-quot-without-quot-null-pointer/m-p/2262928#M43235</link>
    <description>&lt;P&gt;Thank you for your answer, I will test it later.&lt;/P&gt; 
&lt;P&gt;Beside that, I found the solution that meets my needs;&lt;BR /&gt;we do a test with the "if":&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;((Integer) globalMap.get (" tLogRow_1_NB_LINE ")) == 0&lt;/PRE&gt; 
&lt;P&gt;If the WS returns 0 data, we generate empty files but with a warning message "WARNING :: This WebService is down and returns No Data" with the tDie.&lt;BR /&gt;I hope it will help you one day &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2018-10-16 14-49-37.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0Uu.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136934i07D094EB0E407399/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0Uu.png" alt="0683p000009M0Uu.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2018-10-16 14-53-44.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0Vv.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142958i7F99CCCDAC4676F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0Vv.png" alt="0683p000009M0Vv.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Oct 2018 14:57:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-10-16T14:57:28Z</dc:date>
    <item>
      <title>tFileRowCount, read "0 rows" without "null pointer exception"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileRowCount-read-quot-0-rows-quot-without-quot-null-pointer/m-p/2262926#M43233</link>
      <description>&lt;P&gt;Hi, the job works as follows:&lt;/P&gt; 
&lt;P&gt;I need to recover data from the &lt;STRONG&gt;WS&lt;/STRONG&gt;, so if the WS returns &lt;STRONG&gt;0 data&lt;/STRONG&gt; (0 rows), I need to throw an exception, not the "NullPointerException". I tried with the "tFileRowCount" to read the rows, if rows == 0 throw exception otherwise "tfileOutputDelimited", and it did not work. I made screenshots to make it clear at the job level: someone can help me plzz!&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot from 2018-10-16 11-40-30.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0SZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145239i81F5399AC8D793CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0SZ.png" alt="0683p000009M0SZ.png" /&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-center" image-alt="Screenshot from 2018-10-16 11-52-24.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0TC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153559i8800B7ACBF8CE3D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0TC.png" alt="0683p000009M0TC.png" /&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 11:54:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileRowCount-read-quot-0-rows-quot-without-quot-null-pointer/m-p/2262926#M43233</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-16T11:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: tFileRowCount, read "0 rows" without "null pointer exception"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileRowCount-read-quot-0-rows-quot-without-quot-null-pointer/m-p/2262927#M43234</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;Could you please try the below method? Here, when I am specifying zero records in trowgenerator, no records will be written into the target file. I have allowed the subjob to complete. I verified the number of records loaded by the pseudo variable NB_LINE&amp;nbsp;linked to tfileoutputdelimited (use control space to view it) and add it as condition in Run if line&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;((Integer)globalMap.get("tFileOutputDelimited_1_NB_LINE")) ==0&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This resulted in printing the value in second tjava job. The concept remains same for your job also.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If the answer has helped you, could you 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;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 861px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0Vb.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137993iC005209470EB8424/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0Vb.png" alt="0683p000009M0Vb.png" /&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;&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, 16 Oct 2018 12:44:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileRowCount-read-quot-0-rows-quot-without-quot-null-pointer/m-p/2262927#M43234</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-16T12:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: tFileRowCount, read "0 rows" without "null pointer exception"</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileRowCount-read-quot-0-rows-quot-without-quot-null-pointer/m-p/2262928#M43235</link>
      <description>&lt;P&gt;Thank you for your answer, I will test it later.&lt;/P&gt; 
&lt;P&gt;Beside that, I found the solution that meets my needs;&lt;BR /&gt;we do a test with the "if":&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;((Integer) globalMap.get (" tLogRow_1_NB_LINE ")) == 0&lt;/PRE&gt; 
&lt;P&gt;If the WS returns 0 data, we generate empty files but with a warning message "WARNING :: This WebService is down and returns No Data" with the tDie.&lt;BR /&gt;I hope it will help you one day &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2018-10-16 14-49-37.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0Uu.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136934i07D094EB0E407399/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0Uu.png" alt="0683p000009M0Uu.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2018-10-16 14-53-44.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0Vv.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142958i7F99CCCDAC4676F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0Vv.png" alt="0683p000009M0Vv.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 14:57:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileRowCount-read-quot-0-rows-quot-without-quot-null-pointer/m-p/2262928#M43235</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-16T14:57:28Z</dc:date>
    </item>
  </channel>
</rss>

