<?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 Count of Inserted rows in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333360#M102147</link>
    <description>Hi All, 
&lt;BR /&gt;I have a job which reads more than 5000 records daily. I want to create a log table which captures job status ( OK/FAILED) , No of Rows Inserted , No of Rows Updated , No of Rows Deleted. 
&lt;BR /&gt;So I can be able to identify the no of rows inserted daily. 
&lt;BR /&gt;Kindly assist how to do this. 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Saty.</description>
    <pubDate>Wed, 20 Mar 2013 04:54:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-03-20T04:54:22Z</dc:date>
    <item>
      <title>Count of Inserted rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333360#M102147</link>
      <description>Hi All, 
&lt;BR /&gt;I have a job which reads more than 5000 records daily. I want to create a log table which captures job status ( OK/FAILED) , No of Rows Inserted , No of Rows Updated , No of Rows Deleted. 
&lt;BR /&gt;So I can be able to identify the no of rows inserted daily. 
&lt;BR /&gt;Kindly assist how to do this. 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Saty.</description>
      <pubDate>Wed, 20 Mar 2013 04:54:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333360#M102147</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-20T04:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Inserted rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333361#M102148</link>
      <description>Hi, 
&lt;BR /&gt;When inserted item is chosen, there will be a global variale such as ((Integer)globalMap.get("tOracleRow_1_NB_LINE_INSERTED")) will be avaible, which counts the total number of records have been inserted into database. 
&lt;BR /&gt;Press 
&lt;A href="https://help.talend.com/pages/viewpage.action?pageId=5671120" target="_blank" rel="nofollow noopener noreferrer"&gt;ctrl+space&lt;/A&gt; to access all the global variables 
&lt;BR /&gt;See my screenshot 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009ME8f.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143396i50490BE58508AFD5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009ME8f.png" alt="0683p000009ME8f.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 20 Mar 2013 09:27:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333361#M102148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-20T09:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Inserted rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333362#M102149</link>
      <description>Thanks Sabrina, 
&lt;BR /&gt; 
&lt;BR /&gt;I tried to use that parameter in my job. But I'm getting null in my output. Kindly go through my screenshots. 
&lt;BR /&gt; 
&lt;BR /&gt;Kindly assist. 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Saty. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEAL.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147784iBF2F4A80E4EA349E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEAL.jpg" alt="0683p000009MEAL.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEAQ.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133908iEDD5F8CE5F8DB497/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEAQ.jpg" alt="0683p000009MEAQ.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDtf.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135856i02BE7C207E63CE7C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDtf.jpg" alt="0683p000009MDtf.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 26 Mar 2013 10:41:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333362#M102149</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-26T10:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Inserted rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333363#M102150</link>
      <description>You need to make sure the log process is running after the other processes - use an on subjob ok.</description>
      <pubDate>Tue, 26 Mar 2013 11:16:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333363#M102150</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2013-03-26T11:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Inserted rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333364#M102151</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;You need to make sure the log process is running after the other processes - use an on subjob ok.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Hi Janhess,
&lt;BR /&gt;Once the main job execution is done and Job status is captured by tAssert components. And then Log Process works.
&lt;BR /&gt;So it is the last process to run in the job. No need to use on Subjob Ok for Log Process I guess.
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Saty.</description>
      <pubDate>Tue, 26 Mar 2013 11:31:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333364#M102151</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-26T11:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Inserted rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333365#M102152</link>
      <description>Shouldn't you be using tMySQLOutput1 for the stats?</description>
      <pubDate>Tue, 26 Mar 2013 13:46:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333365#M102152</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2013-03-26T13:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Inserted rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333366#M102153</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Shouldn't you be using tMySQLOutput1 for the stats?&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Hi Janhess,
&lt;BR /&gt;I'm not clear. Are u asking me whether I'm using these functions using tMySQLOutput component.? If so, Yes. I'm using it to call these functions in tMap ( in Log Process ) component.
&lt;BR /&gt;
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Saty.</description>
      <pubDate>Wed, 27 Mar 2013 04:37:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333366#M102153</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-27T04:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Inserted rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333367#M102154</link>
      <description>No the tMySQLOutput you reference in your rule is 2. Looking at your picture I thought it should be 1.</description>
      <pubDate>Wed, 27 Mar 2013 09:12:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333367#M102154</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2013-03-27T09:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Inserted rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333368#M102155</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;No the tMySQLOutput you reference in your rule is 2. Looking at your picture I thought it should be 1.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Thanks Janhess. I did not observe that. I've changed to 1 and now I got it. I've got values under 
&lt;BR /&gt;' TOTAL_NO_OF_ROWS ' and ' NO_OF_ROWS_INSERTED '. Because I'm only inserting the data. 
&lt;BR /&gt;I've changed the job as in Pic 1. And I have used two queries in tMySqlRow component. One Update and one Delete query. U can see the properties of tMySqlRow component in Pic 2. 
&lt;BR /&gt;Now I want to capture deleted count and updated count. 
&lt;BR /&gt;I hope I've explained clearly. Kindly assist. 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Saty. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEAV.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150339iA27F89F39F2BC89C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEAV.jpg" alt="0683p000009MEAV.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEAa.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143552i19520CEAA2ADBD7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEAa.jpg" alt="0683p000009MEAa.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 27 Mar 2013 11:26:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333368#M102155</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-27T11:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Inserted rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333369#M102156</link>
      <description>Hi Saty 
&lt;BR /&gt;There is no global variable like (Integer)globalMap.get("tMysqlOutput_1_NB_LINE_UPDATED") available if you use tMysqlRow to execute the statements, if you want to count the number of rows are deleted or updated, you have to use tMysqlOutput to do it. To do: 
&lt;BR /&gt;1. Query the records from table with tMysqlInput, and link it to a tMap. 
&lt;BR /&gt;2. On tMap, define two output table, one for deleting, and another one for updating, set the filter expression of deleting output as: 
&lt;BR /&gt;row1.id&amp;lt;2000 
&lt;BR /&gt;set the fitler expression of updating output as: 
&lt;BR /&gt;row1.id&amp;gt;5000 
&lt;BR /&gt;3. Link each output to a tMysqlOutput component and select corresponding action 'delete'/'update'. 
&lt;BR /&gt;The job design looks like: 
&lt;BR /&gt;tMysqlInput--main--tMap--out1--tMysqlOutput_1(for deleting) 
&lt;BR /&gt; --out2--tMysqlOutput_2(for updating) 
&lt;BR /&gt;Then, you can use the global variables on other subjob. 
&lt;BR /&gt;(Integer)globalMap.get("tMysqlOutput_1_NB_LINE_DELETED") 
&lt;BR /&gt;(Integer)globalMap.get("tMysqlOutput_2_NB_LINE_UPDATED") 
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 27 Mar 2013 13:30:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333369#M102156</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-27T13:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Inserted rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333370#M102157</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;There is no global variable like (Integer)globalMap.get("tMysqlOutput_1_NB_LINE_UPDATED") available if you use tMysqlRow to execute the statements, if you want to count the number of rows are deleted or updated, you have to use tMysqlOutput to do it.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Thanks Shong.Your reply is very helpful. I've understood the usage of these variables.</description>
      <pubDate>Thu, 28 Mar 2013 05:01:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333370#M102157</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-28T05:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Inserted rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333371#M102158</link>
      <description>hi,&lt;BR /&gt;is it possible to use function inet_aton before inserting data into a mysql database on a col ,if possible can anyone show how to use it and the component used.................</description>
      <pubDate>Tue, 09 Jul 2013 13:15:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333371#M102158</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-07-09T13:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Inserted rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333372#M102159</link>
      <description>Hi banu, &lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;is it possible to use function inet_aton before inserting data into a mysql database on a col ,if possible can anyone show how to use it and the component used.................&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Could you please elaborate your case with an example with input and expected output values, which helps us to understand your requirement much better.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Wed, 10 Jul 2013 04:18:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333372#M102159</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-10T04:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Inserted rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333373#M102160</link>
      <description>Hi ,
&lt;BR /&gt;the data file contains ip address like 10.58.25.26 in a column ,in the table for this column i have given the data type as integer . The inet_aton function normally converts ip address to integer value based on some logic .
&lt;BR /&gt;Since i want the address to be converted into integer i want to know which component can be used to perform this operation while inserting into database table... is it possible</description>
      <pubDate>Wed, 10 Jul 2013 06:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333373#M102160</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-07-10T06:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Inserted rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333374#M102161</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;hi,&lt;BR /&gt;is it possible to use function inet_aton before inserting data into a mysql database on a col ,if possible can anyone show how to use it and the component used.................&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Hi 
&lt;BR /&gt;inet_aton is a function of Mysql database, you can't call a SQL function in a Java expression, as a workaround, use a tMysqlRow to execute a query for inserting like this: 
&lt;BR /&gt; 
&lt;PRE&gt;"insert into person values ("+row1.id+", INET_ATON('"+row1.ip+"'))"&lt;/PRE&gt; 
&lt;BR /&gt;Shong 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009ME1K.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132507iCC206EC50CE765A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009ME1K.png" alt="0683p000009ME1K.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 10 Jul 2013 06:52:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333374#M102161</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-10T06:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Inserted rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333375#M102162</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thank u ... and il check on user routines ....</description>
      <pubDate>Wed, 10 Jul 2013 07:40:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333375#M102162</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-07-10T07:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Inserted rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333376#M102163</link>
      <description>Hi id4dsc,&lt;BR /&gt;Thank you for ur post.&lt;BR /&gt;i got my query resolved with the help of ur post.&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;Anand Yadav</description>
      <pubDate>Wed, 11 May 2016 12:42:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Count-of-Inserted-rows/m-p/2333376#M102163</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-11T12:42:23Z</dc:date>
    </item>
  </channel>
</rss>

