Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

[8.0] "duplicate key value violates unique constraint..." on import

By
af
on 11/11/14, 2:08 PM 1,056 views

What does this error mean?

duplicate key value violates unique constraint "product_attribute_value_product_product_rel_att_id_prod_id_key" DETAIL: Key (att_id, prod_id)

This is the csv file I exported. When I try to reimport it I get this error. When I delete the second row it works. 

"id","name","type","product_variant_ids/attribute_line_ids/value_ids","product_variant_ids/attribute_line_ids/attribute_id","product_variant_ids/default_code"
"__export__.product_template_3","ProductName","Stockable Product","Att1,Att2","ProductAtt","12345"
,,,"Att1,Att2","ProductAtt","12346"

 

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/11/14, 2:08 PM
Seen: 1056 times
Last updated: 3/16/15, 8:10 AM