You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Dataverse中1对1父子表创建同步的Power Automate报错解决

问题:Dataverse中通过Power Automate创建关联子表记录报错

背景

  • Dataverse不支持原生1对1关系,已创建双向1:M/M:1关联父表Table-A与子表Table-B
  • 需求:Table-A创建记录时,自动生成Table-B记录并关联该Table-A的ID

Power Automate配置

Power Automate配置截图

报错详情

原始输入

{
    "host": {
        "connectionReferenceName": "shared_commondataserviceforapps",
        "operationId": "CreateRecord"
    },
    "parameters": {
        "entityName": "cr855_testchildren",
        "item/cr855_childid": null,
        "item/cr855_ParentID@odata.bind": "1"
    }
}

错误内容

{
  "error": {
    "code": "0x80060888",
    "message": "URL was not parsed due to an ODataUnrecognizedPathException. Resource not found for the segment provided in the URL."
  }
}

问题原因及解决方法

  1. 格式错误导致报错:cr855_ParentID@odata.bind的赋值不符合Dataverse的OData绑定规则,直接填ID值"1"无效,必须使用完整的实体引用路径。
  2. 正确绑定方式:
    • 在"创建记录"动作中,找到cr855_ParentID字段,从动态内容里选择触发步骤中Table-A的记录ID,系统会自动生成格式为/[Table-A实体逻辑名称](记录ID)的绑定值(比如你的Table-A逻辑名称是cr855_testparents,就会生成/cr855_testparents(xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx))。
  3. 额外优化:删除手动设置的cr855_childid字段,因为Table-B的主键是自动生成,无需手动赋值为null。

内容的提问来源于stack exchange,提问作者Adham Nawito

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.07 05:24:50