<?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: Generation of Surrogate key for Incremental Load in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Generation-of-Surrogate-key-for-Incremental-Load/m-p/2241782#M28833</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLI3AAO"&gt;@ShaX&lt;/A&gt;&amp;nbsp;,can you just set a some value like 1 for that context,you will not get the warring.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2019 04:27:52 GMT</pubDate>
    <dc:creator>manodwhb</dc:creator>
    <dc:date>2019-03-18T04:27:52Z</dc:date>
    <item>
      <title>Generation of Surrogate key for Incremental Load</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generation-of-Surrogate-key-for-Incremental-Load/m-p/2241771#M28822</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;I have a column in a table in table for which am generating a surrogate value by using&amp;nbsp;Numeric.sequence("S1",1000,1). This works fine for the 1st time but for the second time, I want it to&amp;nbsp; take max value form the last generated surrogate value. Here I am taking the max of that column into a context variable and using in the tmap&amp;nbsp;Numeric.sequence("S1",Max(Column_Name),1).&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Here I am facing an issue. Context variable is not accepting the int value in it. I am getting error.&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2fA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150973iDD72A406FE5D84B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2fA.png" alt="0683p000009M2fA.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture_1.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2kT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153421iA32FEEF40C63951C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2kT.png" alt="0683p000009M2kT.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Can you please help me solve this issue.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance&lt;/P&gt; 
&lt;P&gt;ShaX&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 11:08:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generation-of-Surrogate-key-for-Incremental-Load/m-p/2241771#M28822</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-11T11:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Generation of Surrogate key for Incremental Load</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generation-of-Surrogate-key-for-Incremental-Load/m-p/2241772#M28823</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLI3AAO"&gt;@ShaX&lt;/A&gt;&amp;nbsp;,in th pre job you need to take the max key form the target table and load to context using tcontextload.you can use that context value this way in downstream.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Numeric.sequence("S1",context.DIm_DW_CUSTOMER_ID,1)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 11:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generation-of-Surrogate-key-for-Incremental-Load/m-p/2241772#M28823</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2019-03-11T11:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Generation of Surrogate key for Incremental Load</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generation-of-Surrogate-key-for-Incremental-Load/m-p/2241773#M28824</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it absolutely not clear from the description - what you really do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in any variants, current form:&lt;/P&gt;&lt;PRE&gt;Numeric.sequence("S1",Max(Column_Name),1)&lt;/PRE&gt;&lt;P&gt;is wrong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you store max value (not seen - how) to context variable, it must be:&lt;/P&gt;&lt;PRE&gt;Numeric.sequence("S1",context.CONTEXT_VARIABLE_NAME,1)&lt;/PRE&gt;&lt;P&gt;no MAX(), context. - mandatory&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;add:&lt;/P&gt;&lt;P&gt;as the default value for context variable use 1, it resolve null value warning&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 11:14:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generation-of-Surrogate-key-for-Incremental-Load/m-p/2241773#M28824</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-03-11T11:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Generation of Surrogate key for Incremental Load</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generation-of-Surrogate-key-for-Incremental-Load/m-p/2241774#M28825</link>
      <description>Hi Manohar, I am trying to do the same. but my question is : 1. If I declare variable as int am getting "Null value will be used for context parameter DIM_DW_CUSTOMER_ID: For input string: "context.DIM_DW_CUSTOMER_ID"" this error. 2. If I declare variable as String then am getting "string to int conversion error" as the column am populating is Int Regards Sharukh</description>
      <pubDate>Mon, 11 Mar 2019 11:22:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generation-of-Surrogate-key-for-Incremental-Load/m-p/2241774#M28825</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-11T11:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Generation of Surrogate key for Incremental Load</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generation-of-Surrogate-key-for-Incremental-Load/m-p/2241775#M28826</link>
      <description>Hi Vapukov,&lt;BR /&gt;My mistake I wrote that&lt;BR /&gt;Actually Numeric.sequence("S1",context.DIM_DW_CUSTOMER_ID,1) is the one am using.</description>
      <pubDate>Mon, 11 Mar 2019 11:24:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generation-of-Surrogate-key-for-Incremental-Load/m-p/2241775#M28826</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-11T11:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Generation of Surrogate key for Incremental Load</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generation-of-Surrogate-key-for-Incremental-Load/m-p/2241776#M28827</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLI3AAO"&gt;@ShaX&lt;/A&gt;&amp;nbsp;,yes As part of initialization,if you have not specified then it will take as Null and when the prejob completed successfully that max value would be stored in memory for that context and would be used in downstream.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 11:28:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generation-of-Surrogate-key-for-Incremental-Load/m-p/2241776#M28827</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2019-03-11T11:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Generation of Surrogate key for Incremental Load</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generation-of-Surrogate-key-for-Incremental-Load/m-p/2241777#M28828</link>
      <description>&lt;P&gt;change the initial context variable value to 1, type INT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in query use CASE for return 1 if it first iteration and max(column) for any other&lt;/P&gt;&lt;P&gt;store to context max(column) + 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;must work&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 11:30:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generation-of-Surrogate-key-for-Incremental-Load/m-p/2241777#M28828</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-03-11T11:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Generation of Surrogate key for Incremental Load</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generation-of-Surrogate-key-for-Incremental-Load/m-p/2241778#M28829</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;I got the weird result, here my max value is 1900, so it has to start from 1901 instead it is starting from 1190.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.PNG" style="width: 234px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2eq.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133781i8981B30F8D7AFC18/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2eq.png" alt="0683p000009M2eq.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I got the below error in talend. and I have only 25353 rows instead of 35353 rows&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture_1.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2UR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149189i4AA39B83403C47CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2UR.png" alt="0683p000009M2UR.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 12:51:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generation-of-Surrogate-key-for-Incremental-Load/m-p/2241778#M28829</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-11T12:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Generation of Surrogate key for Incremental Load</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generation-of-Surrogate-key-for-Incremental-Load/m-p/2241779#M28830</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;HR /&gt;
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LLI3AAO"&gt;@ShaX&lt;/A&gt;&amp;nbsp;wrote:
 &lt;BR /&gt;
 &lt;P&gt;Hi,&lt;/P&gt;
 &lt;P&gt;I got the weird result, here my max value is 1900, so it has to start from 1901 instead it is starting from 1190.&lt;/P&gt;
 &lt;P&gt;&amp;nbsp;&lt;/P&gt;
 &lt;P&gt;I got the below error in talend. and I have only 25353 rows instead of 35353 rows&lt;/P&gt;
 &lt;P&gt;&amp;nbsp;&lt;/P&gt;
 &lt;P&gt;&amp;nbsp;&lt;/P&gt;
 &lt;HR /&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it is not seen - what's wrong (it is work definitely)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;diffrerence for 10 000 - because database rollback &lt;STRONG&gt;all&lt;/STRONG&gt; batch (10k default batch size in talend) with &lt;STRONG&gt;any&lt;/STRONG&gt; error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 13:04:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generation-of-Surrogate-key-for-Incremental-Load/m-p/2241779#M28830</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-03-11T13:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Generation of Surrogate key for Incremental Load</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generation-of-Surrogate-key-for-Incremental-Load/m-p/2241780#M28831</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000067LRbAAM"&gt;@vapukov&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Can you please explain how to over come this. caz i tried many ways but I am not understanding where am doing it wrong.&lt;/P&gt; 
&lt;P&gt;I think the issue is with the Variable which I am declaring as Int.&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.PNG" style="width: 881px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3A8.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147906iAFA59131853A44FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3A8.png" alt="0683p000009M3A8.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Am getting above error.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards&lt;/P&gt; 
&lt;P&gt;ShaX&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards&lt;/P&gt; 
&lt;P&gt;ShaX&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 03:56:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generation-of-Surrogate-key-for-Incremental-Load/m-p/2241780#M28831</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-12T03:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Generation of Surrogate key for Incremental Load</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generation-of-Surrogate-key-for-Incremental-Load/m-p/2241781#M28832</link>
      <description>&lt;P&gt;Any help on this plzz.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 04:02:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generation-of-Surrogate-key-for-Incremental-Load/m-p/2241781#M28832</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-18T04:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Generation of Surrogate key for Incremental Load</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generation-of-Surrogate-key-for-Incremental-Load/m-p/2241782#M28833</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLI3AAO"&gt;@ShaX&lt;/A&gt;&amp;nbsp;,can you just set a some value like 1 for that context,you will not get the warring.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 04:27:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generation-of-Surrogate-key-for-Incremental-Load/m-p/2241782#M28833</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2019-03-18T04:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Generation of Surrogate key for Incremental Load</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generation-of-Surrogate-key-for-Incremental-Load/m-p/2241783#M28834</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am implementing SCD on my table ,i am trying to generate surrogate id using numeric sequence.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;To do this at the start of the job I am taking max of value and storing it in a context variable "context.SOURCE_ID".This context I am using in the numeric sequence. I am getting this error&lt;/P&gt; 
&lt;P&gt;PFA image.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="picturemessage_kd3ha2un.fde.png" style="width: 920px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4Zm.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151243iB48E65D55B417BDA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4Zm.png" alt="0683p000009M4Zm.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;Sreelekha.&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 12:01:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generation-of-Surrogate-key-for-Incremental-Load/m-p/2241783#M28834</guid>
      <dc:creator>SREE3</dc:creator>
      <dc:date>2019-05-14T12:01:32Z</dc:date>
    </item>
  </channel>
</rss>

