Lynn
Lynn

Reputation: 4408

Partition Error when uploading to CosmosDB from CRM

Background:

I have set up my LogicApp and everything appears to work fine except when I try to upload back to CosmosDB from CRM.

This is what I have done so far: enter image description here

The problem appears to happen here: enter image description here

enter image description here

error:

["PartitionKey extracted from document doesn't match the one specified in the header"]

I have placed the partition within the dynamic field so I am unsure why I am getting this error:

My partition ID is OwnerInCRM

enter image description here

The partitionkey in which I plan to send my data to is:

OwnerInCRM

enter image description here

My dilemma/question:

Why am I getting this partition error when I am putting the correct value in the partition key value field? (OwnerInCRM)

Any suggestion is appreciated.

Upvotes: 0

Views: 53

Answers (1)

Steve Johnson
Steve Johnson

Reputation: 8660

In your screenshot of your container,your Partition key is OwnerInCRM.However your OwnerInCRM value in your document is "",and your Partition key value is not same with "",which leads to your error.(your Partition key value should be same to your OwnerInCRM value,not value of your id)

Please try this,set both your Partition key value and OwnerInCRM value is Richard.

Upvotes: 1

Related Questions