Azure AI Foundry Agent Service (Preview) – InvokeAgent Fails With Schema Error (body/error must be Object but is Null)
Hi everyone,
I’m testing the new Azure AI Foundry Agent Service (Preview) connector in Power Automate to call an Azure AI Agent I created in Foundry.
The connector validates my request, but the flow fails on the response with this error:
Action 'Invoke_Agent' failed:
The API 'azureagentservice' returned an invalid response.
The API operation 'InvokeAgent' requires the property 'body/error'
to be of type 'Object' but is of type 'Null'.
What I’m doing
-
Using InvokeAgent with:
-
body/input = text (OCR result)
-
body/user = string
-
body/agent/type = agent_reference
-
body/agent/name = my agent’s ID
-
body/agent/version = correct version from Foundry
The request passes validation fine.
The failure happens only after the response arrives.
Why I think this is a connector bug
The service response does not include an error object, or returns error: null,
but the connector’s schema requires:
error: Object (not nullable)
So the connector rejects the response even though the call succeeded.
What I need help with
Is this a known issue with the preview connector?
Is there any workaround, or a planned fix for the schema so error can be null or optional?
Thanks!