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

Integrity Error importing a CSV file

By
yann
on 7/4/13, 7:56 AM 1,227 views

Hi,

Config:

  • Openerp 7.0
  • Ubuntu 12.04 x64
  • Postgresql 9.1

Problem

I have a CSV file like this :

"company1 name"
"company2 name"
...

So there's only one column.

When I try to import this in openerp web client, via the import menu, this take infinite time, either to validate or import...

After, when I've stopped the process, I've checked the log file, here's a sample (where the error appears):

Traceback (most recent call last):
  File "/opt/openerp/server/openerp/sql_db.py", line 226, in execute
    res = self._obj.execute(query, params)
IntegrityError: duplicate key value violates unique constraint "res_company_name_uniq"
DETAIL:  Key (name)=(company1 name) already exists.

I've also check with pgadmin3 ths database, and there's only one line: my own company (who was here before all this mess).

Someone can explain me why an Integrity Error is raised ?

Thanks

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: 7/4/13, 7:56 AM
Seen: 1227 times
Last updated: 3/16/15, 8:10 AM