Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
6127 Prikazi

I'm trying to import suppliers.  Some are for foreign companies that have no state codes, which makes the import process return errors.  Looking in the database, I see that field "state" in "res.partner" is nullable, so why can't I import a blank field? I have also tried replacing empty strings with "NULL" and "(null)", but neither works.
 

Avatar
Opusti
Avtor Best Answer

What ended up working for me was to open the .csv file in OpenOffice, select the blank fields, and hit the "Delete" key.  I then got a pop-up asking if I wanted to delete numbers, text, etc., or "Delete All".  I chose "Delete All", then re-saved the file.  After that, it validated and imported without problems!  Hope this helps someone else when they run into the same issue.

Avatar
Opusti
Best Answer

I suspect that the fields of your initial csv file were not blank but filled with one symbol/caracter like ' which you cannot see by default.

 

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
maj 25
1314
4
maj 25
5009
1
avg. 24
2316
1
feb. 24
3081
3
okt. 23
11115