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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Get LastInsert ID for each rows in main

Hi,
Here's a part of my schema

0683p000009LyrC.png

 

 

Both LastInsertId return or :
- The last one ID

- A previously commited object id

I want my id, like 1 -> 2 -> 3 etc...

Thanks !

Labels (2)
5 Replies
fdenis
Master
Master

I think you do not have to commit first. link yout commit with an on subjob Ok
Anonymous
Not applicable
Author

I do not have possibility to add "on subjob ok" neither on DBOutput nor XMLMap
fdenis
Master
Master

on subjog OK are allowed only on first component of the subjob . (green background)
Anonymous
Not applicable
Author

If I do that I will lost the information I need in main flux
fdenis
Master
Master

I do not think so. Try and sea.
Using lastInsertedId in an open transation alow you to use last Id as reference in an other Table.
if you have a complex insert procedure just Writ an SQL Procedure and call it from Talend.
by this way you can use this Insert Procedure manually or with an other soft.
Regards,