Duplicate entry 'XXXXX' for key 'PRIMARY'

Highlighted
Five Stars

Duplicate entry 'XXXXX' for key 'PRIMARY'

Hi,

 

When I'm copying records from one database to another database (Source & destination - mysql database) I'm getting "Duplicate entry 'XXXXX' for key 'PRIMARY'".  In tMysqlOutput I mentioned Action of data : "Update or Insert" but still I'm getting duplicate entry error. Someone Please help me.

Thanks,

Nehru.


Accepted Solutions
Highlighted
Sixteen Stars
Sixteen Stars

Re: Duplicate entry 'XXXXX' for key 'PRIMARY'

Are you sure the field you mentionned as the primary key in the tMysqlOutput component matches with the primary key on the database side?

TRF

View solution in original post


All Replies
Highlighted
Sixteen Stars
Sixteen Stars

Re: Duplicate entry 'XXXXX' for key 'PRIMARY'

Are you sure the field you mentionned as the primary key in the tMysqlOutput component matches with the primary key on the database side?

TRF

View solution in original post

Highlighted
Five Stars

Re: Duplicate entry 'XXXXX' for key 'PRIMARY'

Thanks alot, Actually I missed some primary keys in database but mentioned in Map

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog