Community mailing list archives
RE: Import Error Issue on Rel 9 Enterprise edititionby
I tested the CSV file on Runbot, and it works fine, so my script could have something missing?
From: Aris Corpuz [mailto:firstname.lastname@example.org]
Sent: Tuesday, November 24, 2015 3:00 PM
To: Community <email@example.com>
Subject: Re: Import Error Issue on Rel 9 Enterprise editition
I think you'd find that the csv file would import successfully in a community version, as my file does.
My observation is that the issue occurs only with the Enterprise edition that got installed using your script. I should mention, using your script is the only one with which I've been able to install an Enterprise edition successfully and that, except for the import issue, everything else works in the Enterprise edition installed. I've used it more than a dozen times.
Thank you for looking into the import issue, Ray.
On Tue, Nov 24, 2015 at 2:22 PM, Ray Carnes <firstname.lastname@example.org> wrote:
OK, there is something buggy happening.
I exported both attached files using Import-Compatible export, just the CODE field from the default US Chart of Accounts.
The XLS imports fine, while the CSV gives a similar error than what you posted – cutting short the name of the code column in the message:
Import preview failed due to: Unsupported format, or corrupt file: Expected BOF record; found '"id","co'.
(the column name is CODE, the export came from Odoo, it is correctly encoded as UTF8)
I didn’t try the Community Edition, all my work is with Enterprise! J
Have tried that too - importing the csv file with Excel not having been started.
I made sure Excel was not running, then imported the csv file from the Accounting -> Adviser -> Chart of Accounts list view. As soon as the file was chosen (to be imported), the error message appears.
That was from the Enterprise edition of Rel 9.
Following the same process on the Rel 9 Community version, with Excel running, the same csv file is imported successfully.
Was asked about the xlrd on our instance and I provided this screenshot.
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import xlrd
>>> print xlrd.__VERSION__
Use exit() or Ctrl-D (i.e. EOF) to exit
Thanks for your feedback, Ray.
On Tue, Nov 24, 2015 at 10:47 AM, Ray Carnes <email@example.com> wrote:
I have seen this error when the CSV file is open in an Editor that locks the file (such as Excel).
Be sure to close the file if it is open in other programs.
You can also try Excel import/export– I’ve had that work flawlessly so far.
We are facing an issue when trying to import data into Odoo Enterprise v.9. I used the attached install script to install Odoo.
When attempting to import .csv files we get the following error: import preview failed due to: unsupported format, or corrupt file: Expected BOF record; found "id,name\r". For CSV files, the issue could be an incorrect encoding"
We get this error even when exporting an import compatible file out of Odoo and immediately attempting to import it without editing it.
Has anyone experienced this issue before or know of a solution to fix it? We have already tried the different encoding options in the menu, and not having the file open in excel while importing.
Your help would be very much appreciated.