Share via

An error occurred while submitting the agent when publish an agentic workflow on Foundry

Luke Mao 0 Reputation points
2026-06-10T16:31:17.5133333+00:00

I am getting the same issue:

There was a problem submitting the agentAn error occurred while submitting the agent. Please try again.

how can I get more details

Foundry Agent Service
Foundry Agent Service

A fully managed platform in Microsoft Foundry for hosting, scaling, and securing AI agents built with any supported framework or model

0 comments No comments

2 answers

Sort by: Most helpful
  1. kagiyama yutaka 3,600 Reputation points
    2026-06-10T21:20:33.04+00:00

    I think check the Foundry Activity Log at the time of the failed publish and try again with F12 → Network open to read the submit call response, and when it is still unclear, use that timestamp to open an Azure support case.

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-06-10T16:31:49.8266667+00:00

    Use the available troubleshooting and diagnostics around publishing and dependencies to get more detail about why the agent submission fails.

    1. Check for validation errors in the designer
      • In Copilot Studio / flow designer, open the agent’s workflow or agent flow.
      • Use the error-checking tools:
        • For workflows: look for red indicators on actions and open the health center banner to see all errors.
        • For agent flows: look for red indicators and select Flow checker on the top menu to list all errors.
      • You can’t publish if any errors remain, so resolve all listed issues and try publishing again.
    2. Verify version history and saved state
      • Open Version history from the top menu.
      • Ensure the latest version is saved and that you’re publishing the correct version (no partially saved or outdated draft).
    3. Check for missing dependencies if the agent is part of a solution
      • In Power Apps, open the solution that contains the agent.
      • Under Objects, verify that required components (workflows, environment variables, connection references) are included.
      • For any component showing Not Recognized, open the command menu () → AdvancedAdd required objects.
      • Repeat Add required objects for the main Agent component, then export or republish so all dependencies are present.
    4. Use troubleshooting guidance for Foundry agents and publishing
      • If the agent is being published as an Agent Application in Foundry, check the documented troubleshooting table:
        • Ensure the agent has a unique identity (agent.identity not null) if publishing to M365/Teams.
        • Confirm the required roles (Foundry Project Manager for publishing, Foundry User for invoking) are correctly assigned.
        • If tool calls or downstream access fail after publishing, verify RBAC on the new agent identity.
    5. Collect diagnostics for support
      • If the error persists with no clear UI details, collect:
        • Full error details from the publish attempt (including any hidden/expanded error text).
        • Screenshots of solution layers and agent dependencies (if using solutions).
        • A description of steps already tried.
      • Then open a support case as described in the Copilot Studio support guidance.

    These steps surface validation, dependency, and identity/RBAC issues that typically cause generic “problem submitting the agent” errors and give more actionable detail.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.