Odoo Help

Welcome!

This community 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.

0

Prepare a batch import of records from Magento fails

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

Hi,

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

job.perform(session)

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

importer.run(filters)

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

magento_storeview_ids=magento_storeview_ids)

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

verbose=self.__verbose

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

p.close()

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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