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 :
Copilot Studio - Calling Actions from Copilot S...
Unanswered

BadRequest Error

(0) ShareShare
ReportReport
Posted on by 8
Have created a flow in copilot studio for adding team members to an existing team's group. When flow is tested individually, it works and adds the team members reading an excel file from the OneDrive. But, throwing an error when I invoke the flow from a Topic in an Agent by passing the team name as a input argument.
 
Categories:
I have the same question (0)
  • Suggested answer
    DAnny3211 Profile Picture
    63 on at
    BadRequest Error
    Hi,
    
    The `BadGateway` error with code `FlowActionBadRequest` you're encountering when invoking the flow from an Agent Topic suggests that the issue may be related to how the input parameter — in this case, the **team name** — is being passed from the agent to the flow.
    
    Here are a few things to check:
    
    1. **Input mapping**: Ensure that the variable used in the Agent Topic (e.g., `teamName`) is correctly mapped to the flow input. The flow should expect the parameter in the same format and name as provided by the agent.
    
    2. **Data type consistency**: Confirm that the value passed from the agent matches the expected data type in the flow. For example, if the flow expects a string, make sure the agent isn't passing an object or null.
    
    3. **Flow trigger configuration**: Review the trigger of the flow (e.g., "When a Copilot calls a flow") and verify that the input schema includes the `teamName` field and that it's marked as required if necessary.
    
    4. **Error location**: Use the flow run history to pinpoint exactly where the error occurs. This can help determine whether the issue is with the Excel read step, the Teams connector, or the input itself.
    
    For further guidance, you may refer to:
    - Power Automate flow input configuration
    - Copilot Studio flow integration
    - Troubleshooting flow errors
    
    Thanks and best regards,  
    Daniele  
    **Note: This response was prepared with support from Copilot to ensure clarity and completeness.**
  • Michael E. Gernaey Profile Picture
    49,317 Super User 2025 Season 2 on at
    BadRequest Error
     
    I am sorry :-( I cannot keep asking to see the stuff.
     
    Open the Action, see what inside action failed and what it did. Was it both iteration, just the first?
     
     
  • AK-17091038-0 Profile Picture
    8 on at
    BadRequest Error
  • Michael E. Gernaey Profile Picture
    49,317 Super User 2025 Season 2 on at
    BadRequest Error
     
    Please go to the Flow itself and share the Flow Run that failed.
  • AK-17091038-0 Profile Picture
    8 on at
    BadRequest Error
    The error message am getting is as below:
    Error Message: The flow 'AddMembers' ('ab568363-dda6-1219-d8b1-d4b6a5140c2f') failed to run with response code 'BadGateway', error code: NotSpecified. Error Code: FlowActionBadRequest Conversation Id: 38657528-d226-4714-b0af-183f8c745dfd Time (UTC): 2025-09-17T16:28:10.377Z
     
    Steps I am following:
    1. Created a flow to add members to the by using MS Teams Connector.
    2. Have set a Input Variable to receive the name of the team from the agent
    3. Tested the flow individually which is working by adding the names in the excel from onedrive folder
    4. Created a agent with a Topic called "ManageTeam", which will prompt the user to enter a name of the team to which the members to be added.
    5. Invoked the flow from this topic by passing the name of the team 
    6. Agent throws the above while integrating the flow with the agent topic
     
    Hope the above helps the resolve
     
  • Michael E. Gernaey Profile Picture
    49,317 Super User 2025 Season 2 on at
    BadRequest Error
     
    Totally want to help, but not enough information here I am afraid.
     
    Please share your Topic and your Flow, show the Inputs, how you are passing the data, please show the flow Run that failed, if it gets that far.
     
    Also go to your activities Tab and look at each step and that Topic and see what it was doing or attempting to do when it failed.
     
    Please make sure to show clearly the Topic Node where you are calling the Flow and how you are passing in the Inputs etc.
     
    Cheers
     

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 398 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 262 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 100

Last 30 days Overall leaderboard

Featured topics