r/copilotstudio • u/Responsible-Cap-Tain • 14d ago
Copilot Agent responds with error in Copilot app but not in Teams
Long story short: I've created a simple knowledge agent in Copilot Studio and deployed it to Copilot app and Teams.
Scenario:
When a user writes a message and attaches an image to get an answer based on the image that agent responds with:
Copilot app: Error: InvalidUri
Teams: Happily analyzes the image and answers the user.
How does it work in Teams and not in Copilot app which should be the native place to interact with it?
I know I can handle it with a topic that handles messages which include an image, but this simply shouldn't be the way to fix this since it works in Teams.
Is there something I'm overlooking?
Thanks in advance :)
2
u/Ashlesha-msft 14d ago
Hi,
I've created a minimal Copilot Studio knowledge agent to investigate the
InvalidUriissue.Agent configuration:
My test results:
InvalidUri: Not reproduced so far.Could you please create the same minimal agent in your environment and check whether you can reproduce the issue?
Troubleshooting steps:
InvalidUri.If the issue persists, could you also share:
Also, please confirm whether the issue occurs with a newly created minimal agent or only with your existing knowledge agent.
This will help us determine whether we're dealing with a channel-specific issue, an agent configuration issue, or an environment-specific problem.
Thanks!
1
u/dwilk123 14d ago
Has to deal with how those two channels handle file processing at runtime.
I do not publish my agents to M365 for exactly this reason.
If memory serves me correctly- it’s something to do with m365 creates a saved file but doesn’t actually process the file, it only passes a file id to agent- hence the error.