Apostrophe's in names appear to error out the importer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Enapps OpenERP CSV Import Tool |
Fix Released
|
Undecided
|
Enapps Ltd OpenERP Partner London UK |
Bug Description
I tried to import some suppliers, it errored out. Seems mainly tied to my suppliers having apostrophe's in the name. I tried making sure my CSV had all strings double quoted, that didn't seem to matter and still generated an error.
Here is what my CSV data looked like when opened up with a text editor. Removing the apostrophe seemed to fix the error, but is not an ideal solution.
,"Vance's Foods, Inc.",
And here is the error message;
OpenERP Server Error
Client Traceback (most recent call last):
File "/opt/openerp/
response[
File "/opt/openerp/
action = self.call_
File "/opt/openerp/
return self._call_kw(req, model, method, args, {})
File "/opt/openerp/
return getattr(
File "/opt/openerp/
args, kw)
File "/opt/openerp/
result = self.connector.
File "/opt/openerp/
raise fault
Server Traceback (most recent call last):
File "/opt/openerp/
result = openerp.
File "/opt/openerp/
result = ExportService.
File "/opt/openerp/
res = fn(db, uid, *params)
File "/opt/openerp/
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/opt/openerp/
return f(self, dbname, *args, **kwargs)
File "/opt/openerp/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/openerp/
return fct_src(cr, uid, model, method, *args)
File "/opt/openerp/
return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/openerp/
result_id = chain_link.
File "/opt/openerp/
return attr(self._cr, self._uid, [self._id], *args, **kwargs)
File "/opt/openerp/
updating_
File "/opt/openerp/
%s""" % (target_
File "/opt/openerp/
return f(self, *args, **kwargs)
File "/opt/openerp/
res = self._obj.
ProgrammingError: syntax error at or near "s"
LINE 5: AND name = 'Vance's Foods'
cheers Mike, we'll have a look