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.
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.
Was this reply helpful?YesNo
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.