Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Generation of Surrogate key for Incremental Load

Hi,

I have a column in a table in table for which am generating a surrogate value by using Numeric.sequence("S1",1000,1). This works fine for the 1st time but for the second time, I want it to  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 Numeric.sequence("S1",Max(Column_Name),1).

Here I am facing an issue. Context variable is not accepting the int value in it. I am getting error.0683p000009M2fA.png

0683p000009M2kT.png

 

Can you please help me solve this issue.

 

Thanks in advance

ShaX

Labels (1)
  • v7.x

12 Replies
Anonymous
Not applicable
Author

Any help on this plzz.

manodwhb
Champion II
Champion II

@ShaX ,can you just set a some value like 1 for that context,you will not get the warring. 

SREE3
Contributor II
Contributor II

Hi All,

 

I am implementing SCD on my table ,i am trying to generate surrogate id using numeric sequence. 

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

PFA image.

 

0683p000009M4Zm.png

Regards,

Sreelekha.