base_external_referentials fails to create referential ID, cases integrity violation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Magento OpenERP Connector |
Fix Released
|
Undecided
|
Sébastien BEAU - http://www.akretion.com |
Bug Description
This bug does not reproduce in all installations, but I have a test system you can access.
Any type of referential ID fails to create, products, sales, partners, even synchronize. It can create the data, but not the referential. I do not know what causes it, but it makes it impossible to use connector on some installations.
I have also seen on several installations, nearly all, where it fails to create product on the fly. It does not work.
An example
[2011-10-24 03:52:11,
[2011-10-24 03:52:11,
Traceback (most recent call last):
File "/usr/local/
res = self._obj.
IntegrityError: duplicate key value violates unique constraint "ir_model_
Changed in magentoerpconnect: | |
assignee: | nobody → Sébastien BEAU - http://www.akretion.com (sebastien.beau) |
Changed in magentoerpconnect: | |
status: | New → Fix Released |
[2011-10-24 03:47:54, 555][beginnenwe bwinkel] 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 (6896,E' False', E'1',E' res_partner/ 1',43,E' 2011-10- 24 03:47:54',E'extref/http:// www.beginnenweb winkel. com/',E' res.partner' ,E'2011- 10-24 03:47:54' ,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" duplicate key value violates unique constraint "ir_model_ data_module_ name_uniq" [2011-10- 24 03:47:54, 556][beginnenwe bwinkel] ERROR:db.cursor:bad query: SELECT "res_country".id FROM "res_country" WHERE (res_country.code = E'NL') ORDER BY nameTraceback (most recent call last): File "/usr/local/ openerp/ openerp- server/ bin/sql_ db.py", line 131, in execute res = self._obj. execute( query, params) InternalError: current transaction is aborted, commands ignored until end of transaction block[2011-10-24 03:47:54, 557][beginnenwe bwinkel] ERROR:web- services: Uncaught exception openerp/ openerp- server/ bin/osv/ osv.py" , line 122, in wrapper openerp/ openerp- server/ bin/osv/ osv.py" , line 176, in execute res = self.execute_cr(cr, uid, obj, method, *args, **kw) openerp/ openerp- server/ bin/osv/ osv.py" , line 167, in execute_cr openerp/ addons/ magentoerpconne ct/magerp_ core.py" , line 292, in sync_partner address_ ids = self.pool. get('res. partner. address' ).ext_import( cr, uid, result_address, inst.id, context={}) openerp/ addons/ base_external_ referentials/ external_ osv.py" , line 278, in ext_import from_extdata( cr, uid, external_ referential_ id, each_row, for_key_field, mapping_lines, defaults, context) openerp/ addons/ base_external_ referentials/ external_ osv.py" , line 201, in oevals_from_extdata line['external_ field'] ) 'current transaction is aborted, commands ignored until end of transaction block\n',)
Traceback (most recent call last): File "/usr/local/
return f(self, dbname, *args, **kwargs) File "/usr/local/
File "/usr/local/
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/local/
partner_
File "/usr/local/
vals = self.oevals_
File "/usr/local/
raise MappingError(e, each_mapping_
MappingError: InternalError(