<?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: Generate BATCH_ID on increment with one for every job execution in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252031#M35796</link>
    <description>There is no screenshot?</description>
    <pubDate>Thu, 08 Oct 2015 17:29:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-10-08T17:29:49Z</dc:date>
    <item>
      <title>Generate BATCH_ID on increment with one for every job execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252029#M35794</link>
      <description>Hello,
&lt;BR /&gt;&amp;nbsp;
&lt;BR /&gt;I'm new to Talend studio and I have scenario where I need to generate the batch_ID by doing curr_val + 1 and update the value in the oracle table with the latest&amp;nbsp; batch_id.In Talend I'm looking for a component where it looks for the current batch_id and then increment by one and then update the value in the relational table.
&lt;BR /&gt;
&lt;BR /&gt;Thanks in advance!</description>
      <pubDate>Sat, 16 Nov 2024 11:00:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252029#M35794</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Generate BATCH_ID on increment with one for every job execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252030#M35795</link>
      <description>I'm using the Numeric.sequence("s1",1,1)&amp;nbsp; in the tmap expression and the value is not getting updated in the database table 
&lt;BR /&gt;Attached is the screenshot for the tmap expression that I'm using.Please correct me if anything is wrong. 
&lt;BR /&gt;Can anyone please help me 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks,</description>
      <pubDate>Thu, 08 Oct 2015 17:26:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252030#M35795</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-08T17:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Generate BATCH_ID on increment with one for every job execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252031#M35796</link>
      <description>There is no screenshot?</description>
      <pubDate>Thu, 08 Oct 2015 17:29:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252031#M35796</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-08T17:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Generate BATCH_ID on increment with one for every job execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252032#M35797</link>
      <description>Please find the attached screenshot 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/312832/blob_20151009-1542.png" target="_blank"&gt;&amp;nbsp;&lt;/A&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/312832/blob_20151009-1542.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBpW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133772i4B01388CA7B16E81/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBpW.png" alt="0683p000009MBpW.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt;Thanks!</description>
      <pubDate>Fri, 09 Oct 2015 14:44:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252032#M35797</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-09T14:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Generate BATCH_ID on increment with one for every job execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252033#M35798</link>
      <description>That looks OK. You will need to show us the DB component you are using to update the database and how it is configured.</description>
      <pubDate>Fri, 09 Oct 2015 14:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252033#M35798</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-09T14:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Generate BATCH_ID on increment with one for every job execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252034#M35799</link>
      <description>Hi, 
&lt;BR /&gt;Attached is the screenshot for DB component. 
&lt;BR /&gt; 
&lt;BR /&gt;&amp;nbsp; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/312832/blob_20151009-1620.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBpb.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134012iEB988CAF03F644F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBpb.png" alt="0683p000009MBpb.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/312832/blob_20151009-1624.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBpg.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144099i733332EB57CCD2D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBpg.png" alt="0683p000009MBpg.png" /&gt;&lt;/span&gt;&lt;/A&gt; 
&lt;BR /&gt;Thanks!</description>
      <pubDate>Fri, 09 Oct 2015 15:22:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252034#M35799</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-09T15:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Generate BATCH_ID on increment with one for every job execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252035#M35800</link>
      <description>It shows you are updating your db table. What is your lookup key? This should be set on the Advanced Settings tab</description>
      <pubDate>Fri, 09 Oct 2015 16:28:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252035#M35800</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-09T16:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Generate BATCH_ID on increment with one for every job execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252036#M35801</link>
      <description>Hi, 
&lt;BR /&gt;Just now I did configured the lookup key in the additional columns. 
&lt;BR /&gt;Can you please let me know if we need to SQL expression as well.Thanks! 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/312832/blob_20151009-1758.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBpl.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127957i7137E31DEA4C0EE9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBpl.png" alt="0683p000009MBpl.png" /&gt;&lt;/span&gt; &lt;/A&gt;</description>
      <pubDate>Fri, 09 Oct 2015 16:59:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252036#M35801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-09T16:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Generate BATCH_ID on increment with one for every job execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252037#M35802</link>
      <description>Are you wanting to update or insert here? I am not clear. The update you have done is wrong. You want to remove that. If you want to set an update key, you need to tick the "Use field options" tick box and select the update key from there. 
&lt;BR /&gt;But I am not convinced you want to be doing an update here. I think you want to be inserting.</description>
      <pubDate>Fri, 09 Oct 2015 17:14:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252037#M35802</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-09T17:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Generate BATCH_ID on increment with one for every job execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252038#M35803</link>
      <description>Hi, 
&lt;BR /&gt;I did removed the additional columns and choosed the optional fields in the below.I need to update currval to 2(right now it is one).Even I executed the job and the currval is not getting updated. Thanks for your help Sir!&amp;nbsp; 
&lt;BR /&gt;Can you please correct me if anything is wrong! 
&lt;BR /&gt;Attached is the screenshot.&amp;nbsp; 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/312832/blob_20151009-1827.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBK3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153173i975DBF351A28C4BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBK3.png" alt="0683p000009MBK3.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Database table 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/312832/blob_20151009-1829.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBo0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150019iA7EE9DD9272318B2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBo0.png" alt="0683p000009MBo0.png" /&gt;&lt;/span&gt; &lt;/A&gt;</description>
      <pubDate>Fri, 09 Oct 2015 17:30:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252038#M35803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-09T17:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Generate BATCH_ID on increment with one for every job execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252039#M35804</link>
      <description>Ah, I see. So you want to update the value that is currently there by 1? That is a different problem and doesn't require the Numeric.sequence in Talend. Numeric.sequence is a Java method that provides a sequence that is valid for the lifetime of the job. It is reset every time the job runs.&amp;nbsp; 
&lt;BR /&gt;The best way to achieve this is probably to use a tOracleRow. Connect a tFlowToIterate to the tMap. Connect the tOracleRow to the tFlowToIterate using an Iterate link.&amp;nbsp;&amp;nbsp;Write an update statement in there like.... 
&lt;BR /&gt; 
&lt;PRE&gt;"update table set CURVAL = (select CURVAL+1 from table where NAME = '" + ((String)globalMap.get("row1.Name")) +"'"&lt;/PRE&gt; 
&lt;BR /&gt;&amp;nbsp;The above query assumes that the row linking the tmap to the tIterateToFlow is called "row1" and the column is called "Name". The tIterateToFlow will store the values in the globalMap hashmap for every iteration. The update statement above updates the table using the a select to find the last value for the row. The row is selected using the current value of "Name".</description>
      <pubDate>Fri, 09 Oct 2015 20:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252039#M35804</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-09T20:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Generate BATCH_ID on increment with one for every job execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252040#M35805</link>
      <description>Hi, 
&lt;BR /&gt;Thanks for providing me good approach! 
&lt;BR /&gt;I did used the approach that you have provided by using the below query to update in the toraclerow and tIterateFlow and getting the errors. 
&lt;BR /&gt;Can you please let me know if I'm following correctly in the mapping that you have provided. 
&lt;BR /&gt;SQL used in tOraclerow 
&lt;BR /&gt;"update T_GEO_KEYS set CURRVAL = (select CURRVAL+1 from T_GEO_KEYS where NAME = 'DS_BATCH_GID" + ((String)globalMap.get("row1.Name")) +"'" 
&lt;BR /&gt;Error 
&lt;BR /&gt;&amp;nbsp; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/312832/blob_20151009-2327.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBpq.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145422i4AC2C2D591C35511/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBpq.png" alt="0683p000009MBpq.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;toraclerow 
&lt;BR /&gt;&amp;nbsp; 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/312832/blob_20151009-2329.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBjA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129601i400F3D1BE378A850/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBjA.png" alt="0683p000009MBjA.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt;tIterateFlow 
&lt;BR /&gt;&amp;nbsp; 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/312832/blob_20151009-2330.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBUB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150460i13A11E97F659C66F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBUB.png" alt="0683p000009MBUB.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt;tmap 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/312832/blob_20151009-2331.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBpv.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140218i6C49A411E52512D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBpv.png" alt="0683p000009MBpv.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt;&amp;nbsp; 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Yugandhar</description>
      <pubDate>Fri, 09 Oct 2015 22:35:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252040#M35805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-09T22:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Generate BATCH_ID on increment with one for every job execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252041#M35806</link>
      <description>You want to use a tFlowToIterate, not a tIterateToFlow. The flow should be tMap ---&amp;gt;tFlowToIterate ---&amp;gt; tOracleRow.
&lt;BR /&gt;The update should be....
&lt;BR /&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;"update T_GEO_KEYS set CURRVAL = (select CURRVAL+1 from T_GEO_KEYS where NAME = '" + ((String)globalMap.get("row1.Name")) +"'"&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;The row (line) that feeds the tFlowToIterate should be the name of the row before "Name" in the globalMap part of above. So if the row (line) is "row22", the above would be....
&lt;BR /&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;"update T_GEO_KEYS set CURRVAL = (select CURRVAL+1 from T_GEO_KEYS where NAME = '" + ((String)globalMap.get("row22.Name")) +"'"&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;Try and make your jobs flow left to right (like reading text).&amp;nbsp;</description>
      <pubDate>Sat, 10 Oct 2015 00:10:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252041#M35806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-10T00:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Generate BATCH_ID on increment with one for every job execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252042#M35807</link>
      <description>Hi, 
&lt;BR /&gt;Thank you once gain for providing me a good approach! 
&lt;BR /&gt;I did created the job flow as toracleinput -&amp;gt; tmap -&amp;gt; tflowtoiterate -&amp;gt; toraclerow and I'm getting the below error. 
&lt;BR /&gt;Update statement used in toraclerow 
&lt;BR /&gt;&amp;nbsp; "update T_GEO_KEYS set CURRVAL = (select CURRVAL+1 from T_GEO_KEYS where NAME = '" + ((String)globalMap.get("row1.NAME")) +"'" 
&lt;BR /&gt; 
&lt;BR /&gt;Error: 
&lt;BR /&gt;Starting job sequence_generator at 09:33 12/10/2015. 
&lt;BR /&gt; connecting to socket on port 3609 
&lt;BR /&gt; connected 
&lt;BR /&gt;ORA-00921: unexpected end of SQL command 
&lt;BR /&gt; disconnected 
&lt;BR /&gt;Job sequence_generator ended at 09:33 12/10/2015. 
&lt;BR /&gt;Can you please let me know if anything is wrong. 
&lt;BR /&gt;Thanks in advance Sir! 
&lt;BR /&gt;jobflow 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/312832/blob_20151012-1537.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBpN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154284i4C33B91FC6D3807C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBpN.png" alt="0683p000009MBpN.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;toraclerow 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/312832/blob_20151012-1539.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBQJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156038iD4CD035CAB74D3EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBQJ.png" alt="0683p000009MBQJ.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;toracle input 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/312832/blob_20151012-1542.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBq0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157361i3D200543535D0FC9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBq0.png" alt="0683p000009MBq0.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Yugandhar</description>
      <pubDate>Mon, 12 Oct 2015 14:42:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252042#M35807</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-12T14:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Generate BATCH_ID on increment with one for every job execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252043#M35808</link>
      <description>My mistake, I left a closing bracket out of the update I sent you. It should be something like this (but I would urge you to check the update in SQL Developer first. I am not able to check this code here, so am guesstimating)....
&lt;BR /&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;"update T_GEO_KEYS set CURRVAL = (select CURRVAL+1 from T_GEO_KEYS where NAME = '" + ((String)globalMap.get("row1.NAME")) +"')"&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Mon, 12 Oct 2015 18:00:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252043#M35808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-12T18:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Generate BATCH_ID on increment with one for every job execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252044#M35809</link>
      <description>Thank you so much!
&lt;BR /&gt;The SQL is working fine and I do see the error as below
&lt;BR /&gt;Starting job sequence_generator at 16:23 12/10/2015.
&lt;BR /&gt; connecting to socket on port 4053
&lt;BR /&gt; connected
&lt;BR /&gt;ORA-01407: cannot update ("MDMSTGGEO"."T_GEO_KEYS"."CURRVAL") to NULL
&lt;BR /&gt; disconnected
&lt;BR /&gt;Job sequence_generator ended at 16:23 12/10/2015. 
&lt;BR /&gt;Thanks,</description>
      <pubDate>Mon, 12 Oct 2015 21:24:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252044#M35809</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-12T21:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Generate BATCH_ID on increment with one for every job execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252045#M35810</link>
      <description>That is probably because there is no data for the NAME. I've also realised that the update has no where clause. At the moment it will update ALL rows with the result of the nested query. You will need to add a where clause to ensure this doesn't happen.&amp;nbsp; 
&lt;BR /&gt;The code I have given was really meant to give you an idea of how you could achieve this. You really need to go through the process manually using SQL Developer to perfect the sql statements. My guesses are not going to be perfect as I only have the brief information that I have derived from reading your posts. I recommend trying the process out manually, perfect the SQL, work on building it using Java and then start testing with Talend.&amp;nbsp;</description>
      <pubDate>Tue, 13 Oct 2015 00:01:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252045#M35810</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-13T00:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Generate BATCH_ID on increment with one for every job execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252046#M35811</link>
      <description>Thank you Sir!</description>
      <pubDate>Tue, 13 Oct 2015 14:50:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-BATCH-ID-on-increment-with-one-for-every-job-execution/m-p/2252046#M35811</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-13T14:50:27Z</dc:date>
    </item>
  </channel>
</rss>

