update shipping : <Fault 103: 'Requested order not exists.'>

Bug #810952 reported by Thierry
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magento OpenERP Connector
Invalid
Undecided
Unassigned

Bug Description

Hello,

I get an error when i update shipping on magento.
Important note : for updating shipping correctly, i modify delivery.py and stock.py to split carrier['magento_code'] because carrier code is not send. Only shipping method are send like "carrier_shippingmetho".
Without this split, the connector complain that the carrier is missing in a predefined list.

Now information are update into magento correctly, but i get this :

[2011-07-15 11:04:05,928][tngconcepts_test15] ERROR:Magento Call:The picking from the order 100000129 can't be created on Magento, please attach it manually, <Fault 102: u"Impossible de faire l'exp\xe9dition de la commande.">
[2011-07-15 11:04:08,198][tngconcepts_test15] ERROR:Magento Call:The picking from the order 100000131 can't be created on Magento, please attach it manually, <Fault 102: u"Impossible de faire l'exp\xe9dition de la commande.">
[2011-07-15 11:04:09,323][tngconcepts_test15] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
  File "/opt/openerp/server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/openerp/server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/openerp/server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/openerp/addons-extra/base_sale_multichannels/sale.py", line 267, in export_shipping
    ext_shipping_id = self.pool.get('stock.picking').create_ext_shipping(cr, uid, result[0], picking_type, shop.referential_id.id, context)
  File "/opt/openerp/addons/magentoerpconnect/stock.py", line 82, in create_ext_shipping
    self.pool.get('delivery.carrier').check_ext_carrier_reference(cr, uid, carrier_id, magento_incrementid, context)
  File "/opt/openerp/addons/magentoerpconnect/delivery.py", line 35, in check_ext_carrier_reference
    mag_carrier = conn.call('sales_order_shipment.getCarriers', [magento_incrementid])
  File "/opt/openerp/addons/magentoerpconnect/magerp_osv.py", line 53, in call
    res = self.ser.call(self.session, method, arguments)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.6/xmlrpclib.py", line 1253, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1392, in _parse_response
    return u.close()
  File "/usr/lib/python2.6/xmlrpclib.py", line 838, in close
    raise Fault(**self._stack[0])
Fault: <Fault 103: 'Requested order not exists.'>
^CKilled by signal 2.

Thanks for help.

Regards,

Revision history for this message
Thierry (tboulogne) wrote :

I revert all my change and i get same issue.

Openerp : 6.0.2
magentoerpconnect revision : 427

Thierry (tboulogne)
description: updated
Revision history for this message
Sébastien BEAU - http://www.akretion.com (sebastien.beau) wrote :

Do you still have the bug withjh the last stable version?
thanks

Changed in magentoerpconnect:
status: New → Incomplete
Revision history for this message
Thierry (tboulogne) wrote : Re: [Bug 810952] Re: update shipping : <Fault 103: 'Requested order not exists.'>
Download full text (4.0 KiB)

  I did not give it a try.

I use kettle with webservices to update shipping + invoice number
(extend magento API)

> ------------------------------------------------------------------------
>
> Sébastien BEAU - http://www.akretion.com
> <mailto:<email address hidden>>
> 15 octobre 2011 14:46
>
>
> Do you still have the bug withjh the last stable version?
> thanks
>
> ** Changed in: magentoerpconnect
> Status: New => Incomplete
>
> ------------------------------------------------------------------------
>
> Thierry <mailto:<email address hidden>>
> 15 juillet 2011 11:21
>
>
> Public bug reported:
>
> Hello,
>
> I get an error when i update shipping on magento.
> Important note : for updating shipping correctly, i modify delivery.py
> and stock.py to split carrier['magento_code'] because carrier code is
> not send. Only shipping method are send like "carrier_shippingmetho".
> Without this split, the connector complain that the carrier is missing
> in a predefined list.
>
> Now information are update into magento correctly, but i get this :
>
> [2011-07-15 11:04:05,928][tngconcepts_test15] ERROR:Magento Call:The
> picking from the order 100000129 can't be created on Magento, please
> attach it manually, <Fault 102: u"Impossible de faire l'exp\xe9dition
> de la commande.">
> [2011-07-15 11:04:08,198][tngconcepts_test15] ERROR:Magento Call:The
> picking from the order 100000131 can't be created on Magento, please
> attach it manually, <Fault 102: u"Impossible de faire l'exp\xe9dition
> de la commande.">
> [2011-07-15 11:04:09,323][tngconcepts_test15]
> ERROR:web-services:Uncaught exception
> Traceback (most recent call last):
> File "/opt/openerp/server/bin/osv/osv.py", line 122, in wrapper
> return f(self, dbname, *args, **kwargs)
> File "/opt/openerp/server/bin/osv/osv.py", line 176, in execute
> res = self.execute_cr(cr, uid, obj, method, *args, **kw)
> File "/opt/openerp/server/bin/osv/osv.py", line 167, in execute_cr
> return getattr(object, method)(cr, uid, *args, **kw)
> File "/opt/openerp/addons-extra/base_sale_multichannels/sale.py", line
> 267, in export_shipping
> ext_shipping_id =
> self.pool.get('stock.picking').create_ext_shipping(cr, uid, result[0],
> picking_type, shop.referential_id.id, context)
> File "/opt/openerp/addons/magentoerpconnect/stock.py", line 82, in
> create_ext_shipping
> self.pool.get('delivery.carrier').check_ext_carrier_reference(cr, uid,
> carrier_id, magento_incrementid, context)
> File "/opt/openerp/addons/magentoerpconnect/delivery.py", line 35, in
> check_ext_carrier_reference
> mag_carrier = conn.call('sales_order_shipment.getCarriers',
> [magento_incrementid])
> File "/opt/openerp/addons/magentoerpconnect/magerp_osv.py", line 53,
> in call
> res = self.ser.call(self.session, method, arguments)
> File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
> return self.__send(self.__name, args)
> File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
> verbose=self.__verbose
> File "/usr/lib/python2.6/xmlrpclib.py", line 1253, in request
> return self._parse_response(h.getfile(), sock)
> File "/usr/lib/python2.6/xmlrpclib.py", line 1392, in _parse_response
> return...

Read more...

Changed in magentoerpconnect:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.