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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Duplicate entry 'XXXXXX' for key 'PRIMARY'

Hi,
When I need to combine/append 2 tables together, i encounter below error:
Duplicate entry 'MD1209573642' for key 'PRIMARY'.
How to solve this problem? Any one know?
Regards
Benjamin Marcus
Labels (2)
1 Reply
Anonymous
Not applicable
Author

Hi
The column is a primary key, the value "MD1209573642" already exists in table. How to solve the problem? It depends on your request, you have two choice:
1. Check the option 'die on error' on the output DB component, the job throw the exception and dies.
2. Uncheck the option 'die on error', the problematic rows are rejected into the reject flow and the job continue to process next row. Link a reject data flow after the output DB component, you will get all the problematic rows. For example:
tFileIputDelimited--main--tMysqlOutput--reject--tLogRow