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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

autoIncrement of oracle sequence with talend

I have a quastion can i generate the next value of an oracle sequence ,  to insert into a primary key of a table ,with talend in the composant troaclerow , or what should i do 

thanks for help 
Labels (2)
23 Replies
Anonymous
Not applicable
Author

Tell what does not work. Please post the error message.
Anonymous
Not applicable
Author

This is my screen shot  
0683p000009MEcX.jpg 
0683p000009MEnS.jpg 
when i run i have that 0683p000009MA5A.pngRA-00957: duplicate column name
what should i put in the advanced Settings of the toraceOutPut in the additional columns to generates the next val of the sequence
Thanks jlolling
Anonymous
Not applicable
Author

I bet you have forget to remove the ID_HTTP_TRACE in the schema - as I suggested in my first post.
Of course you will get this error when you simply add this column the additional columns without removing it from the schema.
Anonymous
Not applicable
Author

If I delete the id of the table from the schema in the component , I can't add it in the refrenced Column 
how to do it please 
Thanks
Anonymous
Not applicable
Author

What you mean with "referenced Column" ?
In your first picture in the post#12 you have added this column name as a String with the correct SQL expression - why this does not work anymore?
You have done everything right, only you forgot to delete the column from the schema.
Anonymous
Not applicable
Author

in the additional column i should put the refrenced column 
and when i delete the id of the table from the schema it propose for me in selected item the other column of the table 
0683p000009MElN.jpg
how to do please 
Thanks
Anonymous
Not applicable
Author

Aahh sorry, OK this reference column is actual nothing else than the column where the new column have to set before or after in the list of columns. You do not have to take care on this. It doesn't matter on which position your additional ID column is located in the generated insert statement.
Anonymous
Not applicable
Author

When i run i have this error :
ORA-01400: cannot insert NULL into ("KPI"."HTTP_TRACE"."ID_HTTP_TRACE")
ORA-01400: cannot insert NULL into ("KPI"."HTTP_TRACE"."ID_HTTP_TRACE")
also i put in the SQL expression : "KPI.ID_SEQ_HTTP_TRACE.NEXTVAL"
Then i would insert the next value of the sequence in the column Id of the table 
help please 
Thanks
Anonymous
Not applicable
Author

Please post also the schema here as screenshot and again the advanced settings. There must something wrong here. The method I explained to you is very common for Talend.
Anonymous
Not applicable
Author

the schema without after i delete the id in the main
0683p000009MEck.jpg 
and in the additional colmun i should put the name , the sql expression , the position and the refrence column