web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Copilot Studio - Calling Actions from Copilot S...
Unanswered

Can't add custom connector action within agent tools

(0) ShareShare
ReportReport
Posted on by 103
Hello there,
 
I have a custom connector that is working perfectly fine in power automate, power apps.
 
On top of that, I have already added couple of actions within my copilot agent's toolset (and they work well).
 
However yesterday I updated my custom connector (added more actions and some custom code), tested it (worked fine) and afterwards I tried to add one of the newly created actions into my copilot agent toolset.
 
It seems that the tool (i.e. custom connector action) is added but an error prompts all the time (I thought it was transient but today still happens).
 
The error says:
 
ErrorThis Tool has encountered an error obtaining required dependencies. Please re-create the component or restore from a backup to resolve the problem.
 
 
 
Can anybody help? This is really annoying
 
Thank you!
 
Andoni
Categories:
I have the same question (5)
  • stampcoin Profile Picture
    5,058 Super User 2025 Season 2 on at
    Can't add custom connector action within agent tools
    Please try to delete it, publish the agent and then re-add your custom connector.
  • Michael E. Gernaey Profile Picture
    52,571 Super User 2025 Season 2 on at
    Can't add custom connector action within agent tools
     
    Just to verify also. Everything is republished fine prior to updating the bot? I know you said tested, but tested as in from PA itself?
     
    Normally when a custom connector doesn't work its due to metadata in the agent. Ahhh I actually see @stampcoin post now so yeah do what he said and if not, close the Agent, republish your connector, test it and then go back into the bot.
     
    I would be curious also, if the above/below do not work, if you create a second Agent does it work there? That will help pinpoint if its directly the metadata or the Agent.
     
  • ksoze92 Profile Picture
    103 on at
    Can't add custom connector action within agent tools
    Hi guys,
     
    I waited some days (I tried this on Friday afternoon, retried on Saturday morning and waited till now - Monday morning -) and it is working. I deleted the tool when it was not working, waited the period mentioned above, retried today and it works. However I have this same problem with other recently added tools too (i.e. whenever I edit my custom connector and try to add the new actions to the copilot agent this problem happens).
     
    Next time I will try what you guys proposed to see if I can speed things up. Thank you!
  • chiaraalina Profile Picture
    1,070 on at
    Can't add custom connector action within agent tools
    It seems sometimes Copilot Studio can no longer load new operations from an existing custom connector.
    Existing operations still work, but any new or renamed operation ID fails with the error: “This Tool has encountered an error obtaining required dependencies.”
     

    My observation:

    • The same operation works in the Custom Connector Test and in Power Automate. No problems there. It fails ONLY when added as a Tool in Copilot Studio.
    • Renaming the operation ID causes the Tool to break immediately. Meaning I get the same error for working tools if I change operation ID in the definitions in the custom connector. 
    • Changing the ID back to the old value makes it work again.
     
    Solution that worked for me:

    --> Creating a NEW connector with the same Swagger works perfectly: New operation IDs load correctly as Tools.

    This is by now the only solution that helped me. Copying the swagger from the swagger editor and creating a new custom connector.
     

    Hope it helps someone else too!

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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Copilot Studio

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 304 Super User 2025 Season 2

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 224 Super User 2025 Season 2

#3
Sam_Fawzi Profile Picture

Sam_Fawzi 78 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics