This question has been flagged
4 Replies
7875 Views

I have a csv file I'm trying to bring over from vtiger but the phone field is not populating with the imported data. To narrow things down I have only 2 fields I'm importing, company name & the phone.

Under settings, company, import: the CSV file header lists "Account name" which is mapped to "Company Name" & "Phone" which is mapped to "Phone". Validate reports everything seems fine. When I run the import the Company names are added but the phone field is blank. How do I get the phone field to show the phone number?

Thank you

Avatar
Discard
Best Answer

Try and use "address_phone" when importing the phone number rather than phone. Will advise delete the already imported once before trying again if you don't want duplication of company names or export the names to get the ids and import the phone numbers by added them on the exported sheet. This will make sure name are not duplicated and the numbers are added to the right names as well

Avatar
Discard
Author

Thank you for your reply. Under Settings, Companies, Import "address_phone" does not exist. When I type "Phone" into the search mapped field I get "Normal Fields: Phone", "Relation Fields: Child Companies /Child Companies / Phone, Child Companies / Phone". If I type address into the search field it gives "No mtaches found".

If you are talking about importing the phone number for a client/partner, the column header or name should be address_phone you can verify by adding a client to the database with the phone number and export this client to see the right header you require for phone number.

Author

Yes I am adding a client/partner. v7 calls it "Companies". I created a dummy company with phone & Fax fields filled in. When export the feature automatically highlights "Company Name", "Paper Format", "Partner" etc but not "phone", "fax", and some other fields which are filled in when I set up the company. I've manually choosen Company Name, Phone, Fax and email to export. The export created this header with the correct info populated under it. "id", "name", "phone", "fax", "email". I then deleted the dummy company in openerp and tried importing but recieved "you must configure at ...

Author

Here's a copy and paste of the exported file. There was an "ID" column which I removed.


name,phone,fax,email
Dummy co,555-555-5555,444-444-4444,email@dummyco.com


When I run the import I get a "You must configure at least one field to import" even though each field is populated (name=Company name, phone=Phone, fax=Fax, email=Email)

Author Best Answer

Thank you for your reply. Under Settings, Companies, Import "address_phone" does not exist. When I type "Phone" into the search mapped field I get "Normal Fields: Phone", "Relation Fields: Child Companies /Child Companies / Phone, Child Companies / Phone". If I type address into the search field it gives "No mtaches found".

Avatar
Discard
Best Answer

The following CSV header works for me.

 name, phone, fax, street, street2, city, state, zip, website, customer, is_company

Put a few items below this and see if it works. Customer and is_company should be true, unless the item is a contact, in which case is_company should be false.

When you import the items you will see a drop down menu at the header on top of your data, make sure that the column openerp auto detects is the correct column to bring the data into.

Avatar
Discard
Author

Changed the header to your recommendation. I have two rows I'm trying to import as a test. All the fields auto populate with "Don't Import" and would not detect the correct field (except state which detected field as "bank" - I switched it to "Fed. state" from the drop down. The rest I manually changed to match the header. Did not import the phone number. Tried import under "Sales" module, Customers, import and those fields were available (note: is_company is listed as "Is a Company" - if any one else is trying to solve the same problem) however on "Validate" it remported "You must configure at least one field to import" yet all the fields are assigned from the drop down

do you phone numbers have anything other than digits and - or ( in them? try getting rid of a leading + if it is in there.

Author

the number in the field is 555-555-5555. Even tried 555555 and xxxxxx to no avail

Author Best Answer

GREAT NEWS!!!! Got it to work. Here's what I did. I removed the header from the csv file (for those who are new to csv, that's the first line which holds the description of each field). Then on import I removed the check box "The first row of the file contains the label of the column" Then the import worked. Maybe a bug with the import? Not sure why it won't work with the header even when I manualy assign the field to import but I'm happy it's working! Big thanks to Patently and Kaynis for their help.

Avatar
Discard

Can you post the header of your file? There must be something in there that is 'invalid'.