我正在尝试在Logic App中更新Dynamics CRM Online中的现有productsubstitutes
实体。
我对应该链接的产品进行查找,然后使用连接器发送以下数据:
{
"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天回来。