<?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 [resolved] Get last insert ID of a specific table in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-last-insert-ID-of-a-specific-table/m-p/2295599#M68349</link>
    <description>Hi !&lt;BR /&gt;I have a sub-process with 2 simple steps :&lt;BR /&gt;&lt;BR /&gt;Add a new item in the DB&lt;BR /&gt;Add links related to this item in a relational table in the DB&lt;BR /&gt;&lt;BR /&gt;Then, I need the last insert ID.&lt;BR /&gt;The two steps come from the same source of data. That means I have a tReplicate with two branches : first to insert the value, second to insert the links.&lt;BR /&gt;For the second step, I use to put a tMySQLInput, select the content of the table (just ID and name) and match with the data I just inserted (basically, the name).&lt;BR /&gt;Obviously, I committed the first action before doing the second one.&lt;BR /&gt;But the SELECT doesn't give me the ID. Seems it doesn't get the up-to-date data of the DB.&lt;BR /&gt;On another sub-part of the job, I get this ID (one iteration later) and, obviously, I checked that my value is well inserted.&lt;BR /&gt;I tried to use the tMySQLLastInsertId component, but I still have the problem : for the same iteration, no value returned.&lt;BR /&gt;I used the same MySQL connection, of course.&lt;BR /&gt;Any idead will be appreciated !&lt;BR /&gt;Thank you !</description>
    <pubDate>Thu, 24 Mar 2016 10:57:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-03-24T10:57:46Z</dc:date>
    <item>
      <title>[resolved] Get last insert ID of a specific table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-last-insert-ID-of-a-specific-table/m-p/2295599#M68349</link>
      <description>Hi !&lt;BR /&gt;I have a sub-process with 2 simple steps :&lt;BR /&gt;&lt;BR /&gt;Add a new item in the DB&lt;BR /&gt;Add links related to this item in a relational table in the DB&lt;BR /&gt;&lt;BR /&gt;Then, I need the last insert ID.&lt;BR /&gt;The two steps come from the same source of data. That means I have a tReplicate with two branches : first to insert the value, second to insert the links.&lt;BR /&gt;For the second step, I use to put a tMySQLInput, select the content of the table (just ID and name) and match with the data I just inserted (basically, the name).&lt;BR /&gt;Obviously, I committed the first action before doing the second one.&lt;BR /&gt;But the SELECT doesn't give me the ID. Seems it doesn't get the up-to-date data of the DB.&lt;BR /&gt;On another sub-part of the job, I get this ID (one iteration later) and, obviously, I checked that my value is well inserted.&lt;BR /&gt;I tried to use the tMySQLLastInsertId component, but I still have the problem : for the same iteration, no value returned.&lt;BR /&gt;I used the same MySQL connection, of course.&lt;BR /&gt;Any idead will be appreciated !&lt;BR /&gt;Thank you !</description>
      <pubDate>Thu, 24 Mar 2016 10:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-last-insert-ID-of-a-specific-table/m-p/2295599#M68349</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-24T10:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Get last insert ID of a specific table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-last-insert-ID-of-a-specific-table/m-p/2295600#M68350</link>
      <description>Hi,&lt;BR /&gt;Have you checked component t&amp;lt;DB&amp;gt;lastInserted which&amp;nbsp;&lt;FONT size="2"&gt;&lt;FONT face="noto, Helvetica, Arial, sans-serif"&gt;fetches the last inserted ID from a selected DB Connection?&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;A href="https://help.talend.com/search/all?query=tMysqlLastInsertId&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:tMysqlLastInsertId&lt;/A&gt;?&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="noto, Helvetica, Arial, sans-serif"&gt;Could you please post your job design screenshots into forum?&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="noto, Helvetica, Arial, sans-serif"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="noto, Helvetica, Arial, sans-serif"&gt;Sabrina&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Mon, 28 Mar 2016 04:12:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-last-insert-ID-of-a-specific-table/m-p/2295600#M68350</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-28T04:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Get last insert ID of a specific table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-last-insert-ID-of-a-specific-table/m-p/2295601#M68351</link>
      <description>Hi,
&lt;BR /&gt;Yes, I tried tMySQLLastInsertID.
&lt;BR /&gt;Actually, I had the same problem with that component.
&lt;BR /&gt;I solved my problem by putting this component (tMySQLLastInsertID) right after the tMySQLOutput, and then I have the last ID directly, and I don't have to wait for the next iteration.
&lt;BR /&gt;Thank you for your answer !</description>
      <pubDate>Tue, 29 Mar 2016 13:25:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-last-insert-ID-of-a-specific-table/m-p/2295601#M68351</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-29T13:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Get last insert ID of a specific table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Get-last-insert-ID-of-a-specific-table/m-p/2295602#M68352</link>
      <description>Hi,&lt;BR /&gt;Thanks for your feedback and set this topic as resolved.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Wed, 30 Mar 2016 09:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Get-last-insert-ID-of-a-specific-table/m-p/2295602#M68352</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-30T09:03:42Z</dc:date>
    </item>
  </channel>
</rss>

