Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Insert only if the row doesn't Exists

Hi,
How can I make it possible to Insert a row only if it doesn't Exists in the table?
I'm using "Update or Insert" on tMySQLOutput component. But that doesn't work for me!
Labels (2)
23 Replies
janhess
Creator II
Creator II

Use Insert.
Anonymous
Not applicable
Author

tried that one too.. no luck
Anonymous
Not applicable
Author

check out this screenshot!
janhess
Creator II
Creator II

Screen shot shows Insert or Update. Set it to Insert. Duplicate keys will be rejected.
Anonymous
Not applicable
Author

as I mentioned earlier, it still keep inserting records even if i set it to "Insert".
following is the example data:
ID Name SRC
------------------------------------
81687 text1 source
81686 text1 source
81685 text1 source
Anonymous
Not applicable
Author

more explaination given in the screenshot below:
janhess
Creator II
Creator II

In the tMap set the input lookup for inner join and the output to Catch lookup inner join reject to true.
Anonymous
Not applicable
Author

thanks but it is still inserting the same records over and over again... Please check out the tMap settings in the screenshot.
janhess
Creator II
Creator II

You've got nothing in your output key field.