Issue with cbimport


#1

I am trying to import a csv into couchbase but its giving me error

C:\Program Files\Couchbase\Server\bin>cbimport csv -c localhost:8091 -u admin -p 123 -b Tests -d file://C:/Trainings/Couchbase/sample.csv -g ‘key::%mobile%’
2018-07-15T12:27:33.951+05:30 ←[31mERRO: line 1, column 671: bare " in non-quoted-field←[0m←[2m – plan.(*data).execute() at data.go:89←[0m
CSV import failed: line 1, column 671: bare " in non-quoted-field

Below is the content of my csv file

name,age,mobile,address,city
harish1,38,123,12,gurgaon
harish2,32,456,13,delhi
harish3,35,789,14,faridabad

Any help is appreciated.


#2

I am able to resolve this, the issue was with my CSV file having incorrect format.