ADF copy data to cosmosdb producing errors

2023-01-23T02:01:56.39+00:00

I created a copydata pipline in azure data factory to move data from a blob to cosmos mongo api database. All necessary dataset connections connected successfully .But while i debug or execute i get the errors below relating to the sink. Is there a way to resolve this issue.

Failure happened on 'Sink' side. ErrorCode=MongoDbFailedWithMongoDbServerError,

'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=>

The operation failed with server error.

ConnectionId: '{ ServerId : { ClusterId : 1,

EndPoint : "Unspecified/cscdevmongocosmosdbconv-canadacentral.mongo.cosmos.azure.com:10255" },

LocalValue : 5,

ServerValue : "936468714" }'.,

Source=Microsoft.DataTransfer.Runtime.MongoDbAtlasConnector,''

Type=MongoDB.Driver.MongoBulkWriteException`1[[MongoDB.Bson.BsonDocument,

MongoDB.Bson,

Version=2.10.4.0,

Culture=neutral,

PublicKeyToken=15b1115599983c50]],

Message=A bulk write operation resulted in one or more errors.

Error=13, Details='Insert error.

Error=13, Details='Insert error.

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,441 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,532 questions
{count} votes

2 answers

Sort by: Most helpful
  1. 2023-01-31T22:01:39.74+00:00

    Issue resolved and related to privilege provision .Extra contributor role for resource added .

    1 person found this answer helpful.

  2. 2023-01-31T22:03:56.6166667+00:00

    Extra contributor role for resource added to current roles.

    0 comments No comments