dynamics-crm - Crm 更新 productsubstitutes 在逻辑应用程序中出现 502 错误
问题描述
我正在尝试productsubstitutes
在逻辑应用程序中更新 Dynamics CRM Online 中的现有实体。
我查找应该链接的产品,然后使用连接器发送以下数据:
{
"host": {
"connection": {
"name": "/subscriptions/XXXX/resourceGroups/XXX/providers/Microsoft.Web/connections/dynamics_crm_dev"
}
},
"method": "patch",
"path": "/datasets/XXX.crm4/tables/productsubstitutes/items/ITEMID",
"retryPolicy": {
"type": "None"
},
"body": {
"ItemInternalId": "ITEMID",
"_productid_value": "1f2017c1-b9e8-40db-9e15-c890b127e7b2",
"_salesrelationshiptype_label": "Interchangeable",
"_substitutedproductid_value": "4e1d1dd7-b9e8-40db-9e15-c890b127e7b2",
"direction": 0,
"productsubstituteid": "839229d1-b9e8-40db-9e15-c890b127e7b2",
"interchangability": 928350000,
"type": 928350000
}
这会导致奇怪的错误消息:
"statusCode": 502,
"headers": {
XXX
},
"body": {
"error": {
"code": 502,
"source": "logic-apis-westeurope.azure-apim.net",
"clientRequestId": "XXXX-XXX-4b5c-a4d5-XXXX",
"message": "BadGateway",
"innerError": {
"status": 502,
"message": "The other row for the product relationship is not available.",
"source": "XXXX.crm4.dynamics.com",
"errors": [],
"debugInfo": "XXXX-XXX-4b5c-a4d5-XXXX"
}
}
}
两个产品 ID:4e1d1dd7-b9e8-40db-9e15-c890b127e7b2 和 1f2017c1-b9e8-40db-9e15-c890b127e7b2 都是正确的,并且在更新请求之前通过查找获得。
这个问题是可重现的,而且看起来它只发生在特定产品上。
编辑:
我使用 XRM SDK 在一个小型 C# 组件中重建了更新,我得到了同样的错误。所以它肯定与crm相关。
Edit2:我有一张 MS 票,他们知道这个问题.. 并将在 23.08 天回来。
解决方案
推荐阅读
- ruby-on-rails - Rails 按列分组并选择列
- abap - 生产系统中的 ADBC 和 AMDP
- django - Django,模板标签与上下文处理器
- batch-file - 如何使用 youtube-dl 批量创建 youtube 下载器 gui
- html - 递归解析 github 存储库中的所有 .md 文件,并以 html 格式显示结果
- javascript - 使用 Tampermonkey 更改网站的文本
- r - 在 R 中创建一个有条件的向量
- c# - ASP.NET Core MVC 3.0 - 'EmailAddress' 数据注释导致 HTML 输出故障
- javascript - 提交表单后重定向不起作用以感谢您的页面
- python - 如何创建熊猫滚动的功能?