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 magento.stackexchange.com, 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 community@magento.com.

Magento Forum

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

Hi

I am on latest trunk revisions.
I use Open ERP 5.0.3 (stable 5:  http://sisalp.net/pages/documentation.html#menu ) 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/netsvc.py”, line 231, in dispatch
result = LocalService(service_name)(method, *params)
File “/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/netsvc.py”, line 74, in __call__
return getattr(self, method)(*params)
File “/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/service/web_services.py”, 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/web_services.py”, 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/__init__.py”, 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/__init__.py”, 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/magento_openerp_synchro.zip/magento_openerp_synchro/wizard/magento_so_import.py”, line 129, in _do_import
‘magento_id’: so[’customer’][’customer_id’],
File “/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/osv/orm.py”, 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/sql_db.py”, line 76, in wrapper
return f(self, *args, **kwargs)
File “/home/sisalpuser/openerp/stable5/openerp-server-5.0.0-3/bin/sql_db.py”, 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