逻辑应用>从文档中提取的CosmosDB错误PartitionKey与标头中指定的错误不匹配 [英] Logic App > CosmosDB error PartitionKey extracted from document doesn't match the one specified in the header

查看:46
本文介绍了逻辑应用>从文档中提取的CosmosDB错误PartitionKey与标头中指定的错误不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将新的项目从Logic App填充到CosmosDB,结果出现错误400 从文档中提取的PartitionKey与标题中指定的项不匹配".

I'm trying to populate new items from Logic App to CosmosDB, and I ended up with an error 400 "PartitionKey extracted from document doesn't match the one specified in the header"

我确实在引号中指定了PartitionKey,但仍然遇到相同的问题

I did specify the PartitionKey in quotes and still running into the same issue

不知道如何进行这项工作.

Can't figure how to make this work.

推荐答案

转到逻辑应用程序代码视图,然后在创建或更新文档"窗口中进行操作.部分,尝试设置 x-ms-documentdb-partitionkey 标头,例如:

Go to logic app code view then in "Create or update document" section, try setting x-ms-documentdb-partitionkey header like:

这篇关于逻辑应用>从文档中提取的CosmosDB错误PartitionKey与标头中指定的错误不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆