[6.1-legacy] Synchronize referential settings error

Bug #1031806 reported by Paul Catinean on 2012-08-01
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Magento OpenERP Connector
Triaged
Undecided
Alexandre Fayolle - camptocamp

Bug Description

Environment:
Ubuntu 12.04 LTS
Openerp 6.1
magentoerpconnect/6.1-legacy module + all dependencies

Fresh install -> Create new instance -> Set Refferential type, location, user & pass -> reload referential mapping templates -> Syncronize Referential Settings -> produces error:
2012-08-01 14:48:44,856 14045 ERROR ? openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
  File "/opt/openerp/server/openerp/osv/osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/openerp/server/openerp/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/openerp/server/openerp/osv/osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/openerp/extra/magento-6.1-legacy/magentoerpconnect/magentoerpconnect/magerp_core.py", line 108, in core_sync
    self.pool.get('sale.shop').mage_import_base(cr, uid, core_imp_conn, referential_id, {'magento_shop':True, 'company_id':self.pool.get('res.users').browse(cr, uid, uid).company_id.id})
  File "/opt/openerp/extra/magento-6.1-legacy/magentoerpconnect/magentoerpconnect/magerp_osv.py", line 288, in mage_import_base
    result = self.ext_import(cr, uid, data, external_referential_id, defaults, context)
  File "/opt/openerp/extra/magento-6.1-legacy/extra-trunk/base_external_referentials/external_osv.py", line 615, in ext_import
    context=context)
  File "/opt/openerp/extra/magento-6.1-legacy/extra-trunk/base_external_referentials/external_osv.py", line 545, in _ext_import_one_cr
    context=import_ctx)
  File "/opt/openerp/extra/magento-6.1-legacy/extra-trunk/base_external_referentials/external_osv.py", line 486, in _ext_import_one
    existing_rec_id = self.oe_create(cr, uid, vals, referential_id, defaults=defaults, context=context)
  File "/opt/openerp/extra/magento-6.1-legacy/extra-trunk/base_external_referentials/external_osv.py", line 655, in oe_create
    return self.create(cr, uid, vals, context=context)
  File "/opt/openerp/server/openerp/osv/orm.py", line 4239, in create
    self.pool.get(object)._store_set_values(cr, user, ids, fields2, context)
  File "/opt/openerp/server/openerp/osv/orm.py", line 4388, in _store_set_values
    result = self._columns[f].get(cr, self, ids, f, SUPERUSER_ID, context=context)
  File "/opt/openerp/server/openerp/osv/fields.py", line 1136, in get
    result[id] = self.postprocess(cr, uid, obj, name, result[id], context)
  File "/opt/openerp/server/openerp/osv/fields.py", line 1110, in postprocess
    result = (value, dict_names[value])
KeyError: 3L
2012-08-01 14:48:44,860 14045 ERROR ? openerp.netsvc: 3

After it has thrown this error, clicking on syn refferential settings again works (my guess is that it happens because the object is first saved but i wouldn't know...)

The fact is that it happens only once with the described operations above

Changed in magentoerpconnect:
assignee: nobody → Alexandre Fayolle @ camptocamp (alexandre-fayolle-c2c)
summary: - Syncronize refferential settings error
+ [6.1-legacy] Syncronize refferential settings error
tags: added: 6.1-legacy
summary: - [6.1-legacy] Syncronize refferential settings error
+ [6.1-legacy] Syncronize referential settings error
summary: - [6.1-legacy] Syncronize referential settings error
+ [6.1-legacy] Synchronize referential settings error
Changed in magentoerpconnect:
status: New → Triaged
Ivan Kunz (9-ik) wrote :

I have same error !!

David (dhecar) wrote :

Same Error

Environment Information :
System : Linux-3.2.0-29-generic-pae-i686-with-Ubuntu-12.04-precise
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise
Operating System Release : 3.2.0-29-generic-pae
Operating System Version : #46-Ubuntu SMP Fri Jul 27 17:25:43 UTC 2012
Operating System Architecture : 32bit
Operating System Locale : ca_ES.UTF-8
Python Version : 2.7.3
OpenERP-Client Version : 6.1.1
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/opt/legacy/openerp/server/openerp/wsgi/core.py", line 79, in xmlrpc_return
    result = openerp.netsvc.dispatch_rpc(service, method, params)
  File "/opt/legacy/openerp/server/openerp/netsvc.py", line 360, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/opt/legacy/openerp/server/openerp/service/web_services.py", line 586, in dispatch
    res = fn(db, uid, *params)
  File "/opt/legacy/openerp/server/openerp/osv/osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/legacy/openerp/server/openerp/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/legacy/openerp/server/openerp/osv/osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/legacy/openerp/server/openerp/addons/magentoerpconnect/magerp_core.py", line 108, in core_sync
    self.pool.get('sale.shop').mage_import_base(cr, uid, core_imp_conn, referential_id, {'magento_shop':True, 'company_id':self.pool.get('res.users').browse(cr, uid, uid).company_id.id})
  File "/opt/legacy/openerp/server/openerp/addons/magentoerpconnect/magerp_osv.py", line 288, in mage_import_base
    result = self.ext_import(cr, uid, data, external_referential_id, defaults, context)
  File "/opt/legacy/openerp/server/openerp/addons/base_external_referentials/external_osv.py", line 615, in ext_import
    context=context)
  File "/opt/legacy/openerp/server/openerp/addons/base_external_referentials/external_osv.py", line 545, in _ext_import_one_cr
    context=import_ctx)
  File "/opt/legacy/openerp/server/openerp/addons/base_external_referentials/external_osv.py", line 486, in _ext_import_one
    existing_rec_id = self.oe_create(cr, uid, vals, referential_id, defaults=defaults, context=context)
  File "/opt/legacy/openerp/server/openerp/addons/base_external_referentials/external_osv.py", line 655, in oe_create
    return self.create(cr, uid, vals, context=context)
  File "/opt/legacy/openerp/server/openerp/osv/orm.py", line 4239, in create
    self.pool.get(object)._store_set_values(cr, user, ids, fields2, context)
  File "/opt/legacy/openerp/server/openerp/osv/orm.py", line 4388, in _store_set_values
    result = self._columns[f].get(cr, self, ids, f, SUPERUSER_ID, context=context)
  File "/opt/legacy/openerp/server/openerp/osv/fields.py", line 1136, in get
    result[id] = self.postprocess(cr, uid, obj, name, result[id], context)
  File "/opt/legacy/openerp/server/openerp/osv/fields.py", line 1110, in postprocess
    result = (value, dict_names[value])
KeyError: 3L

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers