首页 > 解决方案 > 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 天回来。

标签: dynamics-crmdynamics-crm-onlineazure-logic-apps

解决方案


推荐阅读