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 :
Copilot Studio
Suggested Answer

Agent Execution Error

(0) ShareShare
ReportReport
Posted on by 2

Has anyone encountered this error before?

I’m trying to run an agent after importing it from a Developer environment into a Sandbox environment. I’ve already checked the environment settings and confirmed that IP Firewall is not enabled.

I also tested by importing the agent into a newly created Developer environment, but the same issue still occurs.



I would appreciate any advice on how to resolve this issue.

Categories:
I have the same question (0)
  • Prasad-MSFT Profile Picture
    Microsoft Employee on at
    Hi  thanks for raising your issue. Have you checked whether the agent dependencies were fully migrated during the import (solutions, connections, connection references, and environment variables)?
    Also, does the agent rely on any Copilot Studio features like connectors, Dataverse tables, or custom actions that may not be enabled in the Sandbox environment?

    It would also help to know if any specific error message or failure point appears in the run logs (e.g., authentication, tool loading, or execution failure).
    Since the issue reproduces across environments, it may be related to missing permissions or unsupported capabilities in the target environment rather than IP firewall settings.
  • Suggested answer
    RaghavMishra Profile Picture
    185 on at

    Hi there! 👋

    The error code NetworkIsolationAddressNotAllowed points to a network isolation policy in the target environment that is blocking an address the agent is trying to reach. Here is a structured checklist to work through, grounded in Microsoft Learn:


    1. Check if Virtual Network (VNet) support is enabled on the target environment

    When Power Platform's Virtual Network support is active on an environment, all connector and agent outbound traffic routes through a delegated Azure subnet — and calls to publicly available resources will break unless those resources are reachable from within the subnet. The error you are seeing is consistent with this behaviour.

    To check:

    • Open Power Platform Admin Center → Environments → [Your Sandbox]
    • Go to Settings → Enterprise policies and verify whether a VNet enterprise policy is linked to the environment

    If VNet is enabled and your agent relies on connectors that call public endpoints, you will need to expose those endpoints via Azure Private Endpoint — or temporarily remove the VNet policy from the environment to confirm this is the cause. See Set up Virtual Network support for guidance.


    2. Check Power Platform Tenant Isolation settings

    Tenant isolation restricts connectors from making outbound connections to resources outside your tenant. If any connector or action in the agent calls an external service, verify those are added to the allow list under Power Platform Admin Center → Policies → Tenant Isolation.


    3. Confirm all solution dependencies are properly configured in the target environment

    Importing an agent across environments requires that all dependencies are correctly set up in the destination. Per the Export and import agents using solutions docs, pay specific attention to:

    • Connection references — must be re-linked to active, valid connections in the target environment (connection references guide)
    • Environment variables — values must be set in the target environment (they do not carry over automatically)
    • DLP policies — verify the connectors your agent uses are not blocked by a data loss prevention policy specific to the Sandbox environment

    4. Run VNet diagnostics (if VNet is configured)

    If the environments do have VNet policies, you can use the Microsoft.PowerPlatform.EnterprisePolicies PowerShell diagnostic module to test whether the agent target addresses are reachable:

    Test-NetworkConnectivity -EnvironmentId "<YourSandboxEnvironmentId>" -Destination "<TargetEndpoint>" -Port 443

    📌 Most likely root cause: Since the error reproduces in both the Sandbox and a freshly-created Developer environment, it is worth checking whether both target environments are linked to the same enterprise policy that carries network isolation rules — the source Developer environment may not have that policy, which is why it worked there originally.


    Found this helpful? Please mark ✅ "Does this answer your question?" so others searching for the same issue can find it quickly. A 👍 on "Was this reply helpful?" or a ♥ Like is also much appreciated!

    Raghav MishraLinkedIn | PowerAI Labs

  • AP-11060927-0 Profile Picture
    2 on at
    Hi Prasad and Raghav,
    I am helping my colleague follow up on this issue. We have gone through all the suggestions from both of you and here is a full update:
    Regarding Prasad's points:

    - All solution dependencies have been verified, connections, connection references, and environment variables are all properly configured in the target environment.
    - We deleted all existing connections and recreated them fresh but the same error still occurs.
    - The agent does use Dataverse tables, Jira actions, Jira API key, and Encodian connector inside the Power Automate flow.
    - There are no error messages in the run logs. The Power Automate flow shows as healthy with 0 errors and 0 warnings. The trigger fires successfully and a conversation ID is generated but NO automated activity appears in the Copilot Studio activity list. The error only shows up when manually searching by that specific conversation ID.
     
    Regarding Raghav's points:
    - ALL our environments are UNMANAGED, so VNet enterprise policies do not apply. Confirmed with our admin.
    - No tenant isolation restrictions are configured that would block our connectors. Confirmed with our admin.
    - No blocking DLP policies are configured for all environment. 
    - IP Firewall is NOT enabled on any environment. Confirmed with our admin.
    - Both End-user credentials AND Maker-provided credentials are enabled under Control Maker Credential Options.

    What makes this particularly confusing:
    - We exported the solution and imported it into multiple new environments (both Dev and Sandbox type) — same error in all of them.
    - We created a BRAND NEW agent from scratch in the target environment using the same trigger types — same error still occurs.
    - However, when we imported the agent into an older Sandbox environment (approximately 2 years old), the agent works perfectly fine.
    - The exact same agent also continues to work in the original Developer environment.
     
    Trigger types being used:
    - When an issue is created (V2) — Jira connector
    - When an HTTP request is received

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 249

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 180 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 153

Last 30 days Overall leaderboard