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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Get Agent Test Run Det...
Copilot Studio
Suggested Answer

Get Agent Test Run Details Action in Agent Flows

(0) ShareShare
ReportReport
Posted on by
I have flow that uses the "Get Agent Test Run Details" action. EOD yesterday the action was running correctly, but Today I ran the action, and it is now throwing an error of: 
"Action 'Get_Agent_Test_Run_Details' failed: The API 'microsoftcopilotstudio' returned an invalid response for workflow operation 'Get_Agent_Test_Run_Details' of type 'OpenApiConnection'. Error details: 'The API operation 'GetAgentMakerEvaluationTestRunDetails' requires the property 'body/testCasesResults/0/metricsResults/0/result/data/score' to be of type 'Object' but is of type 'String'.'"
 
I then made a flow with just this action, and it is still throwing the error on a valid completed test set. The error seems to have something to do with the underlying API (weird datatype changes might have been made) and not my implementation.
 
Any suggestions?
I have the same question (0)
  • Suggested answer
    Sunil Kumar Pashikanti Profile Picture
    1,626 Moderator on at
     
    If your Agent Flow was working previously and is now failing with an error stating that metricsResults/0/result/data/score is expected to be an Object but is returned as a String, this strongly indicates a backend connector regression.

    Root cause:
    The Copilot Studio API is currently returning the score field as a string, while the microsoft copilot studio Power Automate connector schema still expects an object. Because Power Automate validates responses against the connector schema before continuing execution, the action fails automatically.

    How to handle this:
    Open a Support Ticket: This is a platform‑level connector issue. Reference that the OpenAPI definition for GetAgentMakerEvaluationTestRunDetails appears out of sync with the production API response.

    Temporary workaround: Use a generic HTTP action to call the Copilot Studio API directly. The HTTP action does not enforce schema validation, so it can successfully capture the response. Be aware this bypasses typed outputs and built‑in error handling.

    Monitor service health: Check the M365 Admin Center Service Health dashboard for Copilot Studio updates.
     
     
    Your flow logic is correct. The failure is caused by a schema mismatch between the Copilot Studio API and the Power Automate connector.
     
     
    ✅ If this answer helped resolve your issue, please mark it as Accepted so it can help others with the same problem.
    👍 Feel free to Like the post if you found it useful.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 572

#2
Haque Profile Picture

Haque 154

#3
chiaraalina Profile Picture

chiaraalina 144 Super User 2026 Season 1

Last 30 days Overall leaderboard