<?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: Unable to get row counts in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Unable-to-get-row-counts/m-p/2376420#M138599</link>
    <description>Yes. Talend does not create code for this output variable if the output db component works in batch mode (or extended insert mode). Use the simple NB_LINE value instead: ((Integer)globalMap.get("tMysqlOutput_1_NB_LINE")). 
&lt;BR /&gt;BTW. it would be easy to provide an insert counter also in the batch mode because the executeBatch() method from the JDBC API returns an array with counts of changed dataset for EVERY single statement in the batch. 
&lt;BR /&gt;There is space for improvements a lot &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;</description>
    <pubDate>Mon, 30 Sep 2013 20:06:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-09-30T20:06:59Z</dc:date>
    <item>
      <title>Unable to get row counts</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unable-to-get-row-counts/m-p/2376417#M138596</link>
      <description>Hello All, 
&lt;BR /&gt;I've set up a job that does the following: 
&lt;BR /&gt;1) Query salesforce with a salesforce input component for all case records that match a certain criteria 
&lt;BR /&gt;2) Use an iterateToFlow to call another salesforce input component to get all the emailMessages related to each case 
&lt;BR /&gt;3) Insert those emails into a mysql database via a mysql output component 
&lt;BR /&gt;4) Delete the successful inserts from salesforce via a salesforce output component. 
&lt;BR /&gt;This job works correctly at the moment. What I need to add is a piece to update the case record with the number of emails put in the mysql database. My problem is that I cannot seem to get the row count of inserts for the mysql database. Unfortunately, nothing I have tried has allowed me to get the successful insert count of emails per case. Does anyone know how to get the row counts for the mysql insert per iterate successfully?</description>
      <pubDate>Sat, 16 Nov 2024 11:53:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unable-to-get-row-counts/m-p/2376417#M138596</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get row counts</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unable-to-get-row-counts/m-p/2376418#M138597</link>
      <description>Hi 
&lt;BR /&gt;There is a global variable like ((Integer)globalMap.get("tMysqlOutput_1_NB_LINE_INSERTED")) that counts the number of inserted records into target DB, press ctrl+bank space in any text field of a component, you will see a list of the global vriables are avaiable and select the one you want to use. 
&lt;BR /&gt;Shong</description>
      <pubDate>Sun, 29 Sep 2013 10:58:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unable-to-get-row-counts/m-p/2376418#M138597</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-29T10:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get row counts</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unable-to-get-row-counts/m-p/2376419#M138598</link>
      <description>I've attempted to use that value, but no matter what I do I am unable to get anything but null from it.</description>
      <pubDate>Mon, 30 Sep 2013 18:27:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unable-to-get-row-counts/m-p/2376419#M138598</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-30T18:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get row counts</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unable-to-get-row-counts/m-p/2376420#M138599</link>
      <description>Yes. Talend does not create code for this output variable if the output db component works in batch mode (or extended insert mode). Use the simple NB_LINE value instead: ((Integer)globalMap.get("tMysqlOutput_1_NB_LINE")). 
&lt;BR /&gt;BTW. it would be easy to provide an insert counter also in the batch mode because the executeBatch() method from the JDBC API returns an array with counts of changed dataset for EVERY single statement in the batch. 
&lt;BR /&gt;There is space for improvements a lot &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;</description>
      <pubDate>Mon, 30 Sep 2013 20:06:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unable-to-get-row-counts/m-p/2376420#M138599</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-30T20:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get row counts</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unable-to-get-row-counts/m-p/2376421#M138600</link>
      <description>Thanks for the replies. I've ended up using my own counter with global var and a Numeric.sequence call to get the row counts the way I need them.</description>
      <pubDate>Wed, 02 Oct 2013 17:33:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unable-to-get-row-counts/m-p/2376421#M138600</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-02T17:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get row counts</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Unable-to-get-row-counts/m-p/2376422#M138601</link>
      <description>Feel free to 
&lt;A href="https://jira.talendforge.org/secure/CreateIssue.jspa?pid=10237&amp;amp;issuetype=14&amp;amp;Create=Create" target="_blank" rel="nofollow noopener noreferrer"&gt;Create a request&lt;/A&gt; for enhancement in JIRA. 
&lt;BR /&gt;Cheers, 
&lt;BR /&gt;Elisa</description>
      <pubDate>Thu, 03 Oct 2013 14:54:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Unable-to-get-row-counts/m-p/2376422#M138601</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-03T14:54:04Z</dc:date>
    </item>
  </channel>
</rss>

