I have a running Azure Cosmos DB API for MongoDB version 3.2 provisioned with throughout. I created a new Azure Cosmos DB API for MongoDB version 3.6 using serverless and tried to copy the data from the 3.2 DB to the second DB using data factory copy job.
the result:
The two of them that failed both have the same error of
Failure happened on 'Sink' side. ErrorCode=MongoDbOperationFailed,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=>Failed to operate data via MongoDB client.,Source=Microsoft.DataTransfer.Runtime.MongoDbAtlasConnector,''Type=MongoDB.Bson.BsonSerializationException,Message=Element name '' is not valid'.,Source=MongoDB.Bson,' Source Pipeline Copy serverless
When I do the same copy from a cosmo mongo DB 3.2 to another cosmo mongo db 3.2 it works fine and no errors. (same data factory job just destination modified to use 3.2 cosmo db). So knowing this I can assume the data on source is okay.
For the copy job I am using the standard build-in copy task just added a sort on the source.
I did look around some, and there was a suggestion of changing tsl=true
to ssl=true
which I did and it did help (before this change entire copy failed).