← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 811519] Re: Invalid error message when import failed due to invalid custom ID format

 

** Changed in: openobject-server
       Status: Confirmed => Fix Committed

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/811519

Title:
  Invalid error message when import failed due to invalid custom ID
  format

Status in OpenERP Server:
  Fix Committed

Bug description:
  My imports always failed because of my way of building a custom ID, I
  was adding "csv.SCH" before each product code to have a unique ID. The
  problem is that a product code can have a dot in its name (see .csv
  attached) but the big issue here is the invalid error reported:

  [2011-07-16 15:36:12,479][online_test1] ERROR:web-services:Uncaught exception
  Traceback (most recent call last):
    File "/opt/openerp/openerp-server-6.0.2/bin/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/opt/openerp/openerp-server-6.0.2/bin/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/opt/openerp/openerp-server-6.0.2/bin/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/opt/openerp/openerp-server-6.0.2/bin/osv/orm.py", line 879, in import_data
      return (-1, res, 'Line ' + str(position) +' : ' + str(e), '')
  UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 114: ordinal not in range(128)

  The invalid custom ID should be reported properly to help the user to
  find the import error.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/811519/+subscriptions


References