error to load using tpostgresoutput duplicate key

Four Stars

error to load using tpostgresoutput duplicate key

hi,

I got this error while to load data to postgres database

Exception in component tPostgresqlOutput_1
org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "pk_cop_company_profile"
Detail: Key (company_profile_id)=(0) already exists.

 

Eight Stars

Re: error to load using tpostgresoutput duplicate key

Hello,

 

can you check if the record you want to insert uses primary key (pk_cop_company_profile) value that is not already in the database?

 

Regards

Lojdr

Four Stars

Re: error to load using tpostgresoutput duplicate key

the database is empty already
Eight Stars

Re: error to load using tpostgresoutput duplicate key

Hello,

 

can you please post here the insert you are using and the table definition you are have in the database?

 

Regards

Lojdr

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