← Back to team overview

c2c-oerpscenario team mailing list archive

Re: [Bug 838012] Re: Error duplicate key

 

* Fresh Openerp 6.0.3 install (all-in-one win)
* Import server-migration module
* Import server-migration-5-to-6 * (base,product,accounting) and 
dependencies
* Connect to old server, ok.
* Load configuration, ok, I've model mapping for the tables.
* Create migration scheduler (all tables from model mapping) and start.
* Wait a minute or more.
* Error with duplicate key.

El 31/08/11 16:15, Lorenzo Battistini - Agile BG - Domsense escribió:
> Hello, please describe every operation you did from when you created the
> database to when the error occurred
>
> ** Changed in: domsense-agilebg-addons
>         Status: New =>  Incomplete
>


** Attachment added: "prodeo.png"
   https://bugs.launchpad.net/bugs/838012/+attachment/2337193/+files/prodeo.png

-- 
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:
  Incomplete

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


References