← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 880590] Re: Synchronize referential fails silently -dev

 

I was able to reproduce this error, with standard magento branch. The
problem is that it fails to create/recognize the referential ID in
ir_model_data. I do not know why this happens. This only happens on
select magento installs, no apparent cause. I know this is related still
to magento because I could replicate the problem on known working erp
installs. If I alter ir_model_data and manually insert the referential
id it works. Another side to this problem, is that the record already
exists, but it tried to insert again because it somehow keys off
referential ID only...

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

Title:
  Synchronize referential fails silently -dev

Status in Magento OpenERP Connector:
  New

Bug description:
  Using magento module dev rev 26-27
  When I synchronize my referential, the log shows
  [2011-10-24 01:43:48,257][tester] INFO:Magento Connection:Attempting connection with Settings:http://www.beginnenwebwinkel.com/index.php/api/xmlrpc/,openerp,xxxx
  [2011-10-24 01:43:48,502][tester] INFO:Magento Connection:Login Successful
  [2011-10-24 01:43:48,505][tester] INFO:Magento Connection:Calling Method:ol_websites.list,Arguments:[]
  [2011-10-24 01:43:48,645][tester] INFO:Magento Connection:Query Returned:[{'code': 'base', 'name': 'Main Website', 'website_id': '1', 'is_default': '1', 'sort_order': '0', 'default_group_id': '1'}]
  [2011-10-24 01:43:48,660][tester] INFO:ext synchro:Created in OpenERP external.shop.group from External Ref with external_id 1 and OpenERP id 1 successfully
  [2011-10-24 01:43:48,664][tester] INFO:Magento Connection:Calling Method:ol_groups.list,Arguments:[]
  [2011-10-24 01:43:48,797][tester] INFO:Magento Connection:Query Returned:[{'default_store_id': '1', 'group_id': '1', 'website_id': '1', 'name': 'Main Website Store', 'root_category_id': '2'}]
  [2011-10-24 01:43:48,804][tester] INFO:Magento Connection:Attempting connection with Settings:http://www.beginnenwebwinkel.com/index.php/api/xmlrpc/,openerp,xxxx
  [2011-10-24 01:43:48,938][tester] INFO:Magento Connection:Login Successful
  Wrong ID for the browse record, got False, expected an integer.
  [2011-10-24 01:43:48,953][tester] INFO:ext synchro:Created in OpenERP sale.shop from External Ref with external_id 1 and OpenERP id 2 successfully
  [2011-10-24 01:43:48,956][tester] INFO:Magento Connection:Calling Method:ol_storeviews.list,Arguments:[]
  [2011-10-24 01:43:49,092][tester] INFO:Magento Connection:Query Returned:[{'code': 'default', 'store_id': '1', 'website_id': '1', 'is_active': '1', 'sort_order': '0', 'group_id': '1', 'name': 'Default Store View'}]
  [2011-10-24 01:43:49,101][tester] INFO:Magento Connection:Attempting connection with Settings:http://www.beginnenwebwinkel.com/index.php/api/xmlrpc/,openerp,xxxx
  [2011-10-24 01:43:49,240][tester] INFO:Magento Connection:Login Successful
  [2011-10-24 01:43:49,246][tester] INFO:Magento Connection:Attempting connection with Settings:http://www.beginnenwebwinkel.com/index.php/api/xmlrpc/,openerp,xxxx
  [2011-10-24 01:43:49,384][tester] INFO:Magento Connection:Login Successful
  [2011-10-24 01:43:49,401][tester] INFO:ext synchro:Created in OpenERP magerp.storeviews from External Ref with external_id 1 and OpenERP id 1 successfully
  [2011-10-24 01:43:50,288][tester] INFO:Magento Connection:Attempting connection with Settings:http://www.beginnenwebwinkel.com/index.php/api/xmlrpc/,openerp,xxxx
  [2011-10-24 01:43:50,526][tester] INFO:Magento Connection:Login Successful
  [2011-10-24 01:44:02,573][tester] INFO:Magento Connection:Attempting connection with Settings:http://www.beginnenwebwinkel.com/index.php/api/xmlrpc/,openerp,xxxx
  [2011-10-24 01:44:02,777][tester] INFO:Magento Connection:Login Successful
  [2011-10-24 01:44:02,780][tester] INFO:Magento Connection:Calling Method:ol_websites.list,Arguments:[]
  [2011-10-24 01:44:02,911][tester] INFO:Magento Connection:Query Returned:[{'code': 'base', 'name': 'Main Website', 'website_id': '1', 'is_default': '1', 'sort_order': '0', 'default_group_id': '1'}]
  [2011-10-24 01:44:02,933][tester] ERROR:db.cursor:bad query: insert into "ir_model_data" (id,"noupdate","external_referential_id","name","res_id","date_update","module","model","date_init",create_uid,create_date) values (6540,E'False',E'1',E'external_shop_group/1',2,E'2011-10-24 01:44:02',E'extref/http://www.beginnenwebwinkel.com',E'external.shop.group',E'2011-10-24 01:44:02',1,now())
  Traceback (most recent call last):
    File "/usr/local/openerp/openerp-server/bin/sql_db.py", line 131, in execute
      res = self._obj.execute(query, params)
  IntegrityError: duplicate key value violates unique constraint "ir_model_data_module_name_uniq"

To manage notifications about this bug go to:
https://bugs.launchpad.net/magentoerpconnect/+bug/880590/+subscriptions


References