← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 838012] [NEW] Error duplicate key

 

Public bug reported:

 when I do schedule migration, and see the scheduled migration I've the
next error

<<<<<<<<<<<<<<<< Error! >>>>>>>>>>>>>>>> Traceback (most recent call
last): File "C:\Archivos de programa\OpenERP
6.0\Server\addons\server_migration\migration.py", line 626, in
_import_data File "C:\Archivos de programa\OpenERP
6.0\Server\addons\server_migration\migration.py", line 589, in
import_model File "C:\Archivos de programa\OpenERP
6.0\Server\addons\server_migration\migration.py", line 329, in create
File "osv\fields.pyo", line 644, in set File "sql_db.pyo", line 78, in
wrapper File "sql_db.pyo", line 131, in execute IntegrityError:
duplicate key value violates unique constraint
"res_partner_category_rel_partner_id_key"

I redo the process (restart) and the error changes to this:


<<<<<<<<<<<<<<<< Error! >>>>>>>>>>>>>>>> Traceback (most recent call last): File "C:\Archivos de programa\OpenERP 6.0\Server\addons\server_migration\migration.py", line 626, in _import_data File "C:\Archivos de programa\OpenERP 6.0\Server\addons\server_migration\migration.py", line 589, in import_model File "C:\Archivos de programa\OpenERP 6.0\Server\addons\server_migration\migration.py", line 329, in create File "osv\fields.pyo", line 644, in set File "sql_db.pyo", line 78, in wrapper File "sql_db.pyo", line 131, in execute IntegrityError: insert or update on table "res_partner_category_rel" violates foreign key constraint "res_partner_category_rel_category_id_fkey" DETAIL: Key (category_id)=(31) is not present in table "res_partner_category". 

In first execution there is no detail...

** Affects: domsense-agilebg-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/838012

Title:
  Error duplicate key

Status in OpenERP Addons by Agile BG & Domsense:
  New

Bug description:
   when I do schedule migration, and see the scheduled migration I've
  the next error

  <<<<<<<<<<<<<<<< Error! >>>>>>>>>>>>>>>> Traceback (most recent call
  last): File "C:\Archivos de programa\OpenERP
  6.0\Server\addons\server_migration\migration.py", line 626, in
  _import_data File "C:\Archivos de programa\OpenERP
  6.0\Server\addons\server_migration\migration.py", line 589, in
  import_model File "C:\Archivos de programa\OpenERP
  6.0\Server\addons\server_migration\migration.py", line 329, in create
  File "osv\fields.pyo", line 644, in set File "sql_db.pyo", line 78, in
  wrapper File "sql_db.pyo", line 131, in execute IntegrityError:
  duplicate key value violates unique constraint
  "res_partner_category_rel_partner_id_key"

  I redo the process (restart) and the error changes to this:

  
  <<<<<<<<<<<<<<<< Error! >>>>>>>>>>>>>>>> Traceback (most recent call last): File "C:\Archivos de programa\OpenERP 6.0\Server\addons\server_migration\migration.py", line 626, in _import_data File "C:\Archivos de programa\OpenERP 6.0\Server\addons\server_migration\migration.py", line 589, in import_model File "C:\Archivos de programa\OpenERP 6.0\Server\addons\server_migration\migration.py", line 329, in create File "osv\fields.pyo", line 644, in set File "sql_db.pyo", line 78, in wrapper File "sql_db.pyo", line 131, in execute IntegrityError: insert or update on table "res_partner_category_rel" violates foreign key constraint "res_partner_category_rel_category_id_fkey" DETAIL: Key (category_id)=(31) is not present in table "res_partner_category". 

  In first execution there is no detail...

To manage notifications about this bug go to:
https://bugs.launchpad.net/domsense-agilebg-addons/+bug/838012/+subscriptions


Follow ups

References