2018-02-12T15:31:05.706+01:00 ←[31mWARN: Unable to generate key for document{"AJ_REJID;AJ_ADHID;AJ_DTENV;AJ_DTREJ;AJ_ECHAA;AJ_ECHMM;AJ_MTIMP;AJ_REJCOD":"9615;10058;;2017-12-26;2017;12;12.00;20"}←[0m←[2m -- csvdata.(*csvSource).Data.func1() at source.go:176←[0m
C:\Program Files\Couchbase\Server\bin>cbimport csv -cluster http://127.0.0.1:8091 -bucket courtage -u Administrator -p xxx-d file://COURTAGE/test.csv -g key::%PRENOM% -t 4
2018-02-13T09:18:27.692+01:00 ←[31mWARN: Unable to generate key for document{“NOM;PRENOM”:“A;b”}←[0m←[2m – csvdata.(*csvSource).Data.func1() at source.go:176←[0m
2018-02-13T09:18:27.711+01:00 ←[31mWARN: Unable to generate key for document{“NOM;PRENOM”:“R;h”}←[0m←[2m – csvdata.(*csvSource).Data.func1() at source.go:176←[0m
2018-02-13T09:18:27.717+01:00 ←[31mERRO: Some errors occurred while transfering data, see logs for more details←[0m←[2m – plan.(*data).execute() at data.go:89←[0m
CSV import failed: Some errors occurred while transfering data, see logs for more details
C:\Program Files\Couchbase\Server\bin>cbimport csv -cluster http://127.0.0.1:8091 -bucket courtage -u Administrator -p xxx -d file://COURTAGE/test.csv -g key::%NOM% -t 4
2018-02-13T09:14:26.380+01:00 ←[31mWARN: Unable to generate key for document{“NOM;PRENOM”:“R;h”}←[0m←[2m – csvdata.(*csvSource).Data.func1() at source.go:176←[0m
2018-02-13T09:14:26.398+01:00 ←[31mWARN: Unable to generate key for document{“NOM;PRENOM”:“A;b”}←[0m←[2m – csvdata.(*csvSource).Data.func1() at source.go:176←[0m
2018-02-13T09:14:26.404+01:00 ←[31mERRO: Some errors occurred while transfering data, see logs for more details←[0m←[2m – plan.(*data).execute() at data.go:89←[0m
CSV import failed: Some errors occurred while transfering data, see logs for more details
I think the issue is that you are doing a csv (comma seperated value) import, but your data is separated by semicolons, not commas. I tried your data with commas, and it worked fine.
This would be better asked as a new question rather than reviving a topic from 2018.
Explore the --include-key option of cbexport to include the key in the exported data and the use the %field% syntax in cbimport’s -g option for importing using the exported key values.