1

我有一个正在工作的子流程。我使用常用​​的 Power Automate 编辑器更改了一些输入参数。然后我去调整了两个称为这个子流的流。

在测试这个子流时,它是成功的。当其他 2 个流尝试调用此流时,出现错误:

"code":"TriggerInputSchemaMismatch","message":"The input body for trigger 'manual' of type 'Request' did not match its schema definition

子流程有此警告消息,这可能是问题所在,但是当我尝试解决问题时,没有任何信息可以帮助我。

在此处输入图像描述

流的触发器的完整输入如下

{
  "type": "object",
  "properties": {
    "text": {
      "title": "CompleteByDateTime",
      "type": "string",
      "x-ms-dynamically-added": true,
      "description": "Please enter your input",
      "x-ms-content-hint": "TEXT"
    },
    "text_1": {
      "title": "TaskScheduleGuid",
      "type": "string",
      "x-ms-dynamically-added": true,
      "description": "Please enter your input",
      "x-ms-content-hint": "TEXT"
    },
    "text_2": {
      "title": "AssignedToGuid",
      "type": "string",
      "x-ms-dynamically-added": true,
      "description": "Enter the GUID of the User to assign the 1st to.  Null if defaulting to the default user/team instead.",
      "x-ms-content-hint": "TEXT"
    },
    "boolean": {
      "title": "CheckForDuplicate",
      "type": "boolean",
      "x-ms-dynamically-added": true,
      "description": "Please select yes or no.  Will match on the Schedule Type and DateTime.  If duplicate found, this flow ends.",
      "x-ms-content-hint": "BOOLEAN"
    },
    "text_4": {
      "title": "AssignedToGuid2",
      "type": "string",
      "x-ms-dynamically-added": true,
      "description": "Only applicable if CreateSecond is true.  Enter the GUID of the User to assign the 2nd to.  Null if defaulting to the default user/team instead.",
      "x-ms-content-hint": "TEXT"
    },
    "boolean_1": {
      "title": "CreateSecond",
      "type": "boolean",
      "x-ms-dynamically-added": true,
      "description": "Please select yes or no",
      "x-ms-content-hint": "BOOLEAN"
    }
  },
  "required": [
    "text",
    "text_1",
    "boolean",
    "boolean_1"
  ]
}

我完全陷入困境和沮丧。我不想从头开始构建整个流程!

4

2 回答 2

1

Content-Type在我们的例子中,Power 自动化中的 webhook设置为application/json但是邮递员请求设置Content-Typeplain/text. 改变这个为我们解决了这个问题。

于 2020-09-14T11:11:48.457 回答
0

这是由于调用子流并收到 400 个响应引起的。子流程将自己标识为已损坏。

子流的某些输入不是强制性的(可选)。但是,当尝试传递空字符串时,子流的调用者遇到了错误。传递给此子流的 400 个错误请求中的足够多导致出现该修复消息。然而,这些都不是很清楚。

于 2020-03-29T08:18:23.547 回答