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
Fifteen Stars TRF
Fifteen 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

All Replies
Fifteen Stars TRF
Fifteen 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
Five Stars

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

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

2019 GARNER 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

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download