<?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 Variabel on first if output null in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Variabel-on-first-if-output-null/m-p/2370503#M133537</link>
    <description>Hey @ll, 
&lt;BR /&gt;i try to check the sum of all DB-actions against the number of rows in my input file. There for i use the if-output at the last db-action. But in the first round of my process (i work with a file list), one count of db-actions is everytime "Null". 
&lt;BR /&gt;My if looks like this : 
&lt;BR /&gt; 
&lt;PRE&gt;null!=globalMap.get("tMysqlOutput_1_NB_LINE_INSERTED") &amp;amp;&amp;amp;&lt;BR /&gt; null!=globalMap.get("tMysqlOutput_1_NB_LINE_UPDATED") &amp;amp;&amp;amp; &lt;BR /&gt;null!=globalMap.get("tMysqlOutput_2_NB_LINE_INSERTED") &amp;amp;&amp;amp; &lt;BR /&gt;null!=globalMap.get("tMysqlOutput_2_NB_LINE_UPDATED") &amp;amp;&amp;amp; &lt;BR /&gt;null!=globalMap.get("tMysqlOutput_3_NB_LINE_INSERTED") &amp;amp;&amp;amp; &lt;BR /&gt;null!=globalMap.get("tMysqlOutput_3_NB_LINE_UPDATED") &amp;amp;&amp;amp; &lt;BR /&gt;((Integer)globalMap.get("tMysqlOutput_1_NB_LINE_INSERTED"))+&lt;BR /&gt;((Integer)globalMap.get("tMysqlOutput_1_NB_LINE_UPDATED"))+&lt;BR /&gt;((Integer)globalMap.get("tMysqlOutput_2_NB_LINE_INSERTED"))+&lt;BR /&gt;((Integer)globalMap.get("tMysqlOutput_2_NB_LINE_UPDATED"))+&lt;BR /&gt;((Integer)globalMap.get("tMysqlOutput_3_NB_LINE_INSERTED"))+&lt;BR /&gt;((Integer)globalMap.get("tMysqlOutput_3_NB_LINE_UPDATED"))!=&lt;BR /&gt;((Integer)globalMap.get("tFileRowCount_1_COUNT"))-((Integer)globalMap.get("tFilterRow_4_NB_LINE_REJECT"))&lt;/PRE&gt; 
&lt;BR /&gt;Is there another posibility? 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAw2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144010i52453E408736AB4F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAw2.png" alt="0683p000009MAw2.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Tue, 20 Aug 2013 12:54:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-08-20T12:54:11Z</dc:date>
    <item>
      <title>Variabel on first if output null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Variabel-on-first-if-output-null/m-p/2370503#M133537</link>
      <description>Hey @ll, 
&lt;BR /&gt;i try to check the sum of all DB-actions against the number of rows in my input file. There for i use the if-output at the last db-action. But in the first round of my process (i work with a file list), one count of db-actions is everytime "Null". 
&lt;BR /&gt;My if looks like this : 
&lt;BR /&gt; 
&lt;PRE&gt;null!=globalMap.get("tMysqlOutput_1_NB_LINE_INSERTED") &amp;amp;&amp;amp;&lt;BR /&gt; null!=globalMap.get("tMysqlOutput_1_NB_LINE_UPDATED") &amp;amp;&amp;amp; &lt;BR /&gt;null!=globalMap.get("tMysqlOutput_2_NB_LINE_INSERTED") &amp;amp;&amp;amp; &lt;BR /&gt;null!=globalMap.get("tMysqlOutput_2_NB_LINE_UPDATED") &amp;amp;&amp;amp; &lt;BR /&gt;null!=globalMap.get("tMysqlOutput_3_NB_LINE_INSERTED") &amp;amp;&amp;amp; &lt;BR /&gt;null!=globalMap.get("tMysqlOutput_3_NB_LINE_UPDATED") &amp;amp;&amp;amp; &lt;BR /&gt;((Integer)globalMap.get("tMysqlOutput_1_NB_LINE_INSERTED"))+&lt;BR /&gt;((Integer)globalMap.get("tMysqlOutput_1_NB_LINE_UPDATED"))+&lt;BR /&gt;((Integer)globalMap.get("tMysqlOutput_2_NB_LINE_INSERTED"))+&lt;BR /&gt;((Integer)globalMap.get("tMysqlOutput_2_NB_LINE_UPDATED"))+&lt;BR /&gt;((Integer)globalMap.get("tMysqlOutput_3_NB_LINE_INSERTED"))+&lt;BR /&gt;((Integer)globalMap.get("tMysqlOutput_3_NB_LINE_UPDATED"))!=&lt;BR /&gt;((Integer)globalMap.get("tFileRowCount_1_COUNT"))-((Integer)globalMap.get("tFilterRow_4_NB_LINE_REJECT"))&lt;/PRE&gt; 
&lt;BR /&gt;Is there another posibility? 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAw2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144010i52453E408736AB4F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAw2.png" alt="0683p000009MAw2.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 20 Aug 2013 12:54:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Variabel-on-first-if-output-null/m-p/2370503#M133537</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-20T12:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Variabel on first if output null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Variabel-on-first-if-output-null/m-p/2370504#M133538</link>
      <description>Try to use your input file component name itself, eg: if it is a excel files then you can find the no of rows using following expression
&lt;BR /&gt;((Integer)globalMap.get("tFileExcelSheetInput_1_NB_LINE"))
&lt;BR /&gt;and Db record count you have to use tFlowmeter</description>
      <pubDate>Wed, 21 Aug 2013 06:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Variabel-on-first-if-output-null/m-p/2370504#M133538</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-21T06:50:10Z</dc:date>
    </item>
  </channel>
</rss>

