[6.1-legacy] Export newly created category generates error

Bug #1031818 reported by Paul Catinean on 2012-08-01
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Magento OpenERP Connector
Triaged
Undecided
Alexandre Fayolle - camptocamp

Bug Description

Environment:
Ubuntu 12.04 LTS
Openero 6.1
Magentoerpconnect/6.1-legacy + dependencies
Fresh install, all import work ok and export of imported categories + products

But when i attempt to create a new category that is a child of Root Category -> Default Category and export it to magento with (Export Catalog) i get:

012-08-01 15:25:04,856 14045 ERROR ? openerp.addons.base_external_referentials.external_osv: Failed to create in External Ref product.category from OpenERP with OpenERP id 7
Traceback (most recent call last):
  File "/opt/openerp/extra/magento-6.1-legacy/extra-trunk/base_external_referentials/external_osv.py", line 793, in _ext_export_one
    crid = self.ext_create(cr, uid, exp_data, conn, mapping_rec['external_create_method'], record_data['id'], context)
  File "/opt/openerp/extra/magento-6.1-legacy/magentoerpconnect/magentoerpconnect/product.py", line 104, in ext_create
    return conn.call(method, [data.get('parent_id', 1), data])
  File "/opt/openerp/extra/magento-6.1-legacy/magentoerpconnect/magentoerpconnect/magerp_osv.py", line 106, in call
    res = self.ser.call(self.session, method, arguments)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1297, in single_request
    return self.parse_response(response)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1473, in parse_response
    return u.close()
  File "/usr/lib/python2.7/xmlrpclib.py", line 793, in close
    raise Fault(**self._stack[0])
Fault: <Fault 103: 'Default Product Listing Sort by not exists on Available Product Listing Sort By'>
2012-08-01 15:25:04,858 14045 ERROR ? openerp.addons.base_external_referentials.external_osv: error during export of Sangerete (id: 7) with referential_id 1. Creating a report line
Traceback (most recent call last):
  File "/opt/openerp/extra/magento-6.1-legacy/extra-trunk/base_external_referentials/external_osv.py", line 830, in _ext_export_one_cr
    record_cr, uid, record_data, referential_id, defaults=defaults, context=export_ctx)
  File "/opt/openerp/extra/magento-6.1-legacy/extra-trunk/base_external_referentials/external_osv.py", line 793, in _ext_export_one
    crid = self.ext_create(cr, uid, exp_data, conn, mapping_rec['external_create_method'], record_data['id'], context)
  File "/opt/openerp/extra/magento-6.1-legacy/magentoerpconnect/magentoerpconnect/product.py", line 104, in ext_create
    return conn.call(method, [data.get('parent_id', 1), data])
  File "/opt/openerp/extra/magento-6.1-legacy/magentoerpconnect/magentoerpconnect/magerp_osv.py", line 106, in call
    res = self.ser.call(self.session, method, arguments)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1297, in single_request
    return self.parse_response(response)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1473, in parse_response
    return u.close()
  File "/usr/lib/python2.7/xmlrpclib.py", line 793, in close
    raise Fault(**self._stack[0])
Fault: <Fault 103: 'Default Product Listing Sort by not exists on Available Product Listing Sort By'>
2012-08-01 15:25:06,507 14045 ERROR ? openerp.addons.base_external_referentials.external_osv: UPDATE ERROR: <Fault 0: 'Unknown Error'>
Traceback (most recent call last):
  File "/opt/openerp/extra/magento-6.1-legacy/extra-trunk/base_external_referentials/external_osv.py", line 940, in ext_update
    self.try_ext_update(cr, uid, data, conn, method, oe_id, external_id, ir_model_data_id, create_method, context)
  File "/opt/openerp/extra/magento-6.1-legacy/magentoerpconnect/magentoerpconnect/product.py", line 1520, in try_ext_update
    return conn.call(method, [external_id, data])
  File "/opt/openerp/extra/magento-6.1-legacy/magentoerpconnect/magentoerpconnect/magerp_osv.py", line 106, in call
    res = self.ser.call(self.session, method, arguments)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1297, in single_request
    return self.parse_response(response)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1473, in parse_response
    return u.close()
  File "/usr/lib/python2.7/xmlrpclib.py", line 793, in close
    raise Fault(**self._stack[0])
Fault: <Fault 0: 'Unknown Error'>

summary: - Export newly created category generates error
+ [6.1-legacy] Export newly created category generates error
tags: added: 6.1-legacy
Changed in magentoerpconnect:
assignee: nobody → Alexandre Fayolle @ camptocamp (alexandre-fayolle-c2c)
Changed in magentoerpconnect:
status: New → Triaged
Ibrahim (barhoom) wrote :

any updates on this bug?

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers