web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

When an Agent calls the flow TriggerInputSchemaMismatch Error

(1) ShareShare
ReportReport
Posted on by 7
Hi everyone,
 
I've been trying to create an Agent flow in Copilot Studio, and no matter what I do I can't seem to get this TriggerInputSchemaMismatch error to go away.
I've titled two variables in my agent flow: 
  • input_GUID (String) 
  • input_JSON (String) 
and I've tested the flow in Power Automate with the exact data I'm passing from Studio and it's run successfully. However, when I look at my topic YAML in Studio, I see: 
    - kind: InvokeFlowAction
      id: invokeFlowAction_2QBFOr
      input:
        binding:
          text: =Text(Coalesce(Global.PRD_GUID,""))
          text_1: =Text(Coalesce(Global.known_prd_json, "{}"))

      output:
        binding:
          output_guid: Topic.prd_guid
For some reason the input binding says "text" & "text_1" instead of "input_GUID" & "input_JSON". 
 
 
I went back to my flow and looked at the code editor for the input variables vs the output variables:
Input - 
Output - 
 
The input schema does not seem to update based on the title I'm providing unlike the output schema, and I'm assuming this is the issue but unsure how to resolve. I've tried recreating the flow, removing and deleting the input action, and various other troubleshooting recommendations online.
 
What else can I try to resolve? 
 
Any help is greatly appreciated!
 
Error message I keep receiving for reference: 
Error Message: The flow 'Sync_PRD_State_v3' ('acdd826d-f3ca-f011-bbd3-6045bd011157') failed to run with response code 'BadRequest', error code: TriggerInputSchemaMismatch. Error Code: FlowActionBadRequest
 
I have the same question (0)
  • abm abm Profile Picture
    32,760 Most Valuable Professional on at
    When an Agent calls the flow TriggerInputSchemaMismatch Error
    Hi
     
     
    Did you renamed these input names?
     
    Copilot Studio stores the mapping in the topic YAML. When you rename inputs in the flow, Studio does not automatically update the YAML. So the old fields stay forever unless you delete and re-add the action.
     
    Thanks
  • TN-26111958-0 Profile Picture
    7 on at
    When an Agent calls the flow TriggerInputSchemaMismatch Error
    Hey @abm abm,
     
    I've tried 
    1. Renaming the input variables in the flow to match the "text" & text_1" mapping in the topic YAML
    2. Deleting the action and re-adding the action so that the mapping would update, but regardless of the title I use in the input action in the flow, in Studio the YAML is always "text" & "text_1"
    3. Re-creating the flow and adding that as a new node in Studio - unfortunately still shows up as "text" & "text_1"
     
    I also tried editing the YAML to be 
    - kind: InvokeFlowAction
          id: invokeFlowAction_2QBFOr
          input:
            binding:
              input_GUID: =Text(Coalesce(Global.PRD_GUID,""))
              input_JSON: =Text(Coalesce(Global.known_prd_json, "{}"))
    but then the Flow action does not recognize the values being assigned as inputs
  • abm abm Profile Picture
    32,760 Most Valuable Professional on at
    When an Agent calls the flow TriggerInputSchemaMismatch Error
    Hi
     
    Thanks for your quick reply. Looks like some caching issue this. Try to create another flow with different input parameter names. Then try to map that and see what it generates? If that works then delete and map your old flow.
     
    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 493 Moderator

#3
Expiscornovus Profile Picture

Expiscornovus 246 Most Valuable Professional

Last 30 days Overall leaderboard