I have a very basic agent flow setup. There are two actions, to get a file from the agent, then return that same file. This is simply a test to troubleshoot what's wrong. The agent call the flow, then asks for the file saying "Please provide the file details including the file name and the file content bytes." Then the agent errors saying something basic "Sorry, something went wrong. Error code: SystemError. Conversation ID: <ID>. Time <Time>." This flow works when using the test button in the designer, but not when my copilot agent calls it. Why? I feel like this should be a super basic flow. I do not see any runs besides the tests within the Power Automate logs.
I believe the issue is occurring before the flow is actually triggered, which would explain why you don't see any runs in Power Automate./Agent Flow
The message:
"Please provide the file details including the file name and the file content bytes."
Usually means Copilot Studio isn't able to populate the required file object automatically. Instead of receiving a valid file payload, the orchestrator is treating contentBytes and name as missing inputs and asking the user for them.
Since those values can't realistically be provided in chat, the tool call fails and the agent returns a generic SystemError.
If you're using this flow as an Agent Flow/Tool, verify that the file input is explicitly mapped from the uploaded attachment rather than relying on AI filling the values.
Could you share how the flow input is configured in the Copilot Studio Tool/Agent Flow configuration?
Maybe also try a minimal validation test:
Before attempting to return a file, create another simple flow:
Input: File
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.