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 / Unable to commit conne...
Copilot Studio
Suggested Answer

Unable to commit connected agents to source control

(1) ShareShare
ReportReport
Posted on by 10
Hi,
 
I have a multi-agent setup where there is an orchestrator agent and one connected agent added to the orchestrator. Both of these agents exist in their own solution. I have verified that I can commit to source control when both these agents are not linked. But as soon as I add the connected agent to the orchestrator, I get the below error. 
 
Shared components are not supported in source control. The botcomponent_connectionreference object `` is included in multiple solutions that are connected to source control (MeetingNotesSolution, ClientInsightsAssistant). Source control requires each component to belong to a single solution in solution scope. Remove this component from one of the solutions before committing your changes.
 
I want to remove the reference from the connected agent, but I dont see this reference in either of the solutions.
 
Any thoughts on how this can be handled?
 
Thanks,
Nihar Dalai.
I have the same question (0)
  • Prasad-MSFT Profile Picture
    Microsoft Employee on at
    This is a known limitation with Power Platform/Copilot Studio solutions and source control: Shared components (like connection references) cannot exist in multiple solutions that are both connected to source control.
    Why This Happens
    • When you link agents (or other components) across solutions, a shared component (e.g., botcomponent_connectionreference) is created.
    • Source control in Power Platform requires each component to belong to only one solution in solution scope.
    • If the same connection reference is present in both solutions, you get this error.
    How to Fix
    Remove the Shared Component from One Solution
    • Go to Power Platform Admin Center.
    • Open one of the solutions (e.g., MeetingNotesSolution or ClientInsightsAssistant).
    • Look for “Connection References” or “Other” components.
    • Remove the botcomponent_connectionreference from one solution (keep it only in the solution where it is primarily used).
    If You Don’t See the Reference
    • Sometimes, the reference is hidden or not visible in the UI.
    • Try exporting both solutions as unmanaged, unzip, and inspect the customizations.xml for the connection reference.
    • Remove the reference from one solution, re-import, and reconnect to source control.
    Best Practice
    • Shared components (like connection references) should be managed in a single “shared” solution, and other solutions should reference them, not include them directly.
  • Suggested answer
    Valantis Profile Picture
    4,793 on at
     
    This is a confirmed source control limitation. When you add a connected agent to an orchestrator that lives in a different solution, a `botcomponent_connectionreference` relationship record is created automatically. This record ends up belonging to both solutions simultaneously, and the source control system rejects that.
     
    The reason you can't see it in either solution's UI is that this is a many-to-many relationship record, not a standalone component. It doesn't show up under Connection References or any standard component type in the solution view.
     
    To find and fix it:
    1. Export both solutions as unmanaged zips
    2. Unzip each and open customizations.xml
    3. Search for `botcomponent_connectionreference` in both files
    4. The record will appear in one or both. Remove it from one of the solutions by deleting that XML node
    5. Re-import the cleaned solution and reconnect to source control
     
    The proper long-term fix is the architecture Prasad mentioned but to be specific for your case: create a third solution called something like `SharedAgentComponents`. Move the connected agent relationship to that solution instead of having it live in either the orchestrator or child agent solution. Both other solutions can then depend on it without owning it.
     
    This is the same pattern required for any shared component across solutions connected to source control connection references, environment variables, etc. Matthew Devaney's source control setup guide confirms this is a hard requirement: each component can only exist in one solution when bound to source control.
     

     

    Best regards,

    Valantis

     

    ✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.

    ❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).

    🏷️ For follow-ups  @Valantis.

    📝 https://valantisond365.com/

    💼 LinkedIn

    ▶️ YouTube

  • CU29041745-1 Profile Picture
    10 on at
    Thank you both. I will give that a try.
     
    As a follow up, I did try to keep the shared connection reference in a different solution. But the problem is I cant see it in the UI and hence cannot move it between solutions. Any thoughts on how to move this reference to the third solution?
  • CU29041745-1 Profile Picture
    10 on at
    Another thing I noticed was that, as soon as I connect both the agents, I see the connected agent being included in the orchestrator agent solution. Is that expected behavior? 
     
    For context, I am trying to keep the solutions separate so that the agents can be deployed independently in the future.

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 704

#2
Vish WR Profile Picture

Vish WR 249

#3
Haque Profile Picture

Haque 244

Last 30 days Overall leaderboard