Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email

Magento Forum

import sales order error
Jr. Member
Total Posts:  3
Joined:  2009-01-14


I am on latest trunk revisions.
I use Open ERP 5.0.3 (stable 5: ) and magento 1.2.1.

I have this error when I try to synchronize openerp and magento for only import
sales orders…

Traceback (most recent call last):
File “/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/”, line 231, in dispatch
result = LocalService(service_name)(method, *params)
File “/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/”, line 74, in __call__
return getattr(self, method)(*params)
File “/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/service/”, line 552, in execute
return self._execute(db, uid, wiz_id, datas, action, context)
File “/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/service/”, line 532, in _execute
return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
File “/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/wizard/”, line 178, in execute
res = self.execute_cr(cr, uid, data, state, context)
File “/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/wizard/”, line 74, in execute_cr
action_res = action(self, cr, uid, data, context)
File “/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/addons/”, line 129, in _do_import
‘magento_id’: so[’customer’][’customer_id’],
File “/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/osv/”, line 2446, in create
cr.execute(’insert into “‘+self._table+’” (id’+upd0+") values ("+str(id_new)+upd1+’)’, tuple(upd2))
File “/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/”, line 76, in wrapper
return f(self, *args, **kwargs)
File “/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/”, line 118, in execute
res = self._obj.execute(query, params)
IntegrityError: duplicate key value violates unique constraint “res_partner_name_uniq”

Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top