Hi, I’ve got a problem with cbimport from Couchbase 7.1 version on Mac. My colleague uses 6.5.0 version on Windows import with the same options works fine for him. The problematic part is: entity::%_id.$oid%
For some reason it doesn’t work for me. The error is:
ERRO: Failed to import document 10632: key generation for document failed, resulting field is a JSON array/object -- jsondata.(*Source).handleError() at source.go:425
cbimport request:
/Applications/Couchbase\ Server.app/Contents/Resources/couchbase-core/bin/cbimport json -u Administrator -p Administrator -b bucket -d file://entity.json --scope-collection-exp _default.entity_temp --generate-key entity::%_id.$oid% -f list -c http://0.0.0.0:8091
Source json:
{
"_id": {
"$oid": "11111"
},...
}