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

Azure DevOps部署Logic App遇InvalidRequestContent错误求助

Azure DevOps部署Logic App时$ref相关InvalidRequestContent错误处理

错误详情

部署Logic App时触发如下错误:

InvalidRequestContent:
Request content contains one or more instances of unsupported reference property names ($id, $ref, $values) creating ambiguity in paths 'properties.definition.actions.Parse_JSON.inputs.schema.properties.caseId.$ref,properties.definition.actions.Parse_JSON.inputs.schema.properties.integrationId.$ref'.
Please remove the use of reference property names and try again.

问题定位

你的Logic App JSON解析模块存在两个核心问题:

  • 字段定义中同时混用$ref和type属性(比如caseId字段同时声明$ref: "#/definitions/nonEmptyString"与type: "string")
  • #/definitions/nonEmptyString被重复定义了两次

解决步骤

  1. 清理重复定义:检查整个Schema的definitions区块,确保nonEmptyString仅保留一份定义,删除重复条目。
  2. 消除属性冲突:$ref与type不能同时出现在同一字段定义中,二选一即可:
    • 若要复用nonEmptyString的约束,仅保留$ref:
      "caseId": {
          "$ref": "#/definitions/nonEmptyString"
      },
      
    • 若无需复用,直接书写完整字段约束:
      "caseId": {
          "type": "string",
          "minLength": 1 // 替换为nonEmptyString定义中的实际约束
      },
      

原因说明

Logic App部署引擎解析JSON Schema时,不支持$ref引用与直接声明type的混用,这种写法会导致路径解析歧义;同时重复的定义会让引擎无法确定使用哪一版约束,因此触发InvalidRequestContent错误。

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.08.01 21:05:32