Odoo Help


Prepare a batch import of records from Magento fails

Ahmed Ababneh
on 10/4/15, 5:20 AM 936 views


When I import sales orders, the import operation fails.

This is the exception that I get:

2015-10-04 09:06:41,396 2739 ERROR jamalon8 openerp.addons.magentoerpconnect.unit.backend_adapter: api.call(sales_order.search, [{'imported': False, 'filters': {'created_at': {'to': '2015/10/01 07:03:00'}, 'store_id': {'in': [u'2']}, 'state': {'neq': 'canceled'}}}]) failed

2015-10-04 09:06:42,516 2739 ERROR jamalon8 openerp.addons.connector.queue.worker: Traceback (most recent call last):

File "/opt/odoo/.local/share/Odoo/addons/8.0/connector/queue/worker.py", line 124, in run_job


File "/opt/odoo/.local/share/Odoo/addons/8.0/connector/queue/job.py", line 467, in perform

self.result = self.func(session, *self.args, **self.kwargs)

File "/opt/odoo/.local/share/Odoo/addons/8.0/magentoerpconnect/sale.py", line 1039, in sale_order_import_batch


File "/opt/odoo/.local/share/Odoo/addons/8.0/magentoerpconnect/sale.py", line 349, in run


File "/opt/odoo/.local/share/Odoo/addons/8.0/magentoerpconnect/sale.py", line 309, in search

return super(SaleOrderAdapter, self).search(arguments)

File "/opt/odoo/.local/share/Odoo/addons/8.0/magentoerpconnect/unit/backend_adapter.py", line 211, in search

[filters] if filters else [{}])

File "/opt/odoo/.local/share/Odoo/addons/8.0/magentoerpconnect/sale.py", line 277, in _call

return super(SaleOrderAdapter, self)._call(method, arguments)

File "/opt/odoo/.local/share/Odoo/addons/8.0/magentoerpconnect/unit/backend_adapter.py", line 168, in _call

result = api.call(method, arguments)

File "/usr/local/lib/python2.7/dist-packages/magento/api.py", line 159, in call

return self.client.call(self.session, resource_path, arguments)

File "/usr/lib/python2.7/xmlrpclib.py", line 1233, in __call__

return self.__send(self.__name, args)

File "/usr/lib/python2.7/xmlrpclib.py", line 1587, in __request


File "/usr/lib/python2.7/xmlrpclib.py", line 1273, in request

return self.single_request(host, handler, request_body, verbose)

File "/usr/lib/python2.7/xmlrpclib.py", line 1306, in single_request

return self.parse_response(response)

File "/usr/lib/python2.7/xmlrpclib.py", line 1480, in parse_response


File "/usr/lib/python2.7/xmlrpclib.py", line 561, in close

self._parser.Parse("", 1) # end of data

ExpatError: no element found: line 1, column 0

 What is this problem?

Thank you very much for the help

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 10/4/15, 5:20 AM
Seen: 936 times
Last updated: 10/4/15, 5:20 AM