Forum Discussion
Can't Publish an Agent inside Copilot Studio for Teams
As gar as I know, this is a known issue with no details published by Microsoft.
if you use the correct user and the correct license for the workload, Microsoft recommends to contact the support:
When this is not the way to go for you, I need some more informations. What is the agent for, did you change the group of users to have access to the agent?
The agent is for a demonstration of how to use Dataverse for Teams. That's why it has to be built in the Copilot Studio app inside Teams. The agent works fine in testing. Its a demo so its basically just the built-in default Topic set. Everything works til you try to hit the Publish tab in the agent. Then you get a non-descript error as I've shown in the original post.
I've been through the troubleshooting link you listed. Its not a permissions issue. Based on responses I'm seeing elsewhere it seems to be a current issue in some legacy software that MS isn't actively pursuing a fix for. Unfortunately, there is no work around and it breaks the functionality of the product entirely.
- Metto1992Jun 11, 2025Copper Contributor
Hey Paul, I have tried to export and improt my agent into another environment, It worked fine, and it was Published succefully, I think there might be a permissions issue with the Admin, however MS devs might not have scripted the error message yet, again, that's just a personal opinion, the workaround, is try to export the agent and import it into different environment, Best of Luck
- PaulStork1Jun 11, 2025Copper Contributor
Did you import it into a Teams based environment or a regular environment? It works in a regular environment. It doesn't work in a Teams environment from the Teams Copilot Studio app. I just heard back from someone on the Team at Microsoft that this is a known issue they are currently working on. They hope to have a resolution soon.
- Metto1992Jun 12, 2025Copper Contributor
answeing to your question, The Environment is Not Teams based