Skip to Content
Menu
This question has been flagged
3 Replies
12635 Views

Hi Friends,

Facing an different scenario altogether. I had a master data csv created from the original MS-excel document. I have ensure it has got comma separator and UTF-8 encoding while saving it. When i try to import into customers, suppliers or products i am getting an error

Blockquote

utf8' codec can't decode byte 0x92 in position 15: invalid start byte

Blockquote

but when i try to import the same csv from ubuntu it succeeds in validation and import as well. Looks strange.

Can some one tell me where is the issue ? any one facing a similar issue of mine ?

Thanks in advance for your suggestions.

Regards Naveen

Avatar
Discard
Best Answer

Using Excel to create UTF8 CSV files is problematic (sometimes saving as XLS instead of XLSX first produces different results, sometimes the UTF8 files are not in fact UTF8).

I have better luck using a different text editor, or using a codepage conversion program.

Also, don't overlook that some conversion may be happening when you move your files between operating systems.

References:

http://notepad-plus-plus.org/

http://sourceforge.net/projects/cp-converter/

Avatar
Discard
Author

Thanks for the reply Ray, i understood the key now.

Author

Ray i have another doubt, am facing issue while importing customers along wt its contacts. I am able to import customers alone wtout any errors but when i tried wt its contacts OE cant recognise the data and giving out error. Not sure am i missing out the right fields to use. Can u let me know if you are aware of the exact fields for customer and contacts.

Author

hi i have cracked it no need to worry, btw t key is to have each contact as a separate line item under a Parent company and adding a new column related company will do the needful at one shot.

Best Answer

Hi Mutu,
Importing datas with MS Excel most of the time gives you this error except when you first export some datas from Openerp.
To solve this problem while using MS Excel just change the encoding methode from UTF-8 to windows-1252 and use "Semicolon" as separator , even if you are 100% sure that MS Excel has saved your file in .csv
Best regards

Avatar
Discard
Author

Thanks for your answer Alain. Will try doing the same, but doing the same in libre office seems to be a permanent solution for this.

Best Answer

Hi,

I've also faced this situation.

And the solution is:

Under windows don't use MS Excel, but use LibreOffice or OpenOfficeOrg, when converting to csv.

Avatar
Discard
Author

Hi and yes i understood now, converting an Excel to csv in windows has an issue so tat openerp cannot recognise the ascii format of the texts it seems, if am correct. Anyways am doing the alternate approach as u suggested as i have another OS i.e Ubuntu besides Windows 8. But dont wish to switch the OS every time i want to import the data. Thanks a lot for your answer. Good day ahead!.

Author

I have another small problem which am facing i.e i want to import all the customers with its respective contacts at one shot, but am unable to do so. I am not sure which is the relative field for the "contacts column. I tried using all t combinations as i know but all failed returning error. I am able to import the customers witout contacts but not with both at one shot. Can you tell me whats the right fields to be used. ? Would of great help to me in that case.

Author

hi i have cracked it no need to worry, btw t key is to have each contact as a separate line item under a Parent company and adding a new column related company will do the needful at one shot.

Related Posts Replies Views Activity
3
Jun 20
3083
1
Nov 18
8535
11
Feb 17
62459
2
Mar 15
10239
4
Nov 24
10231