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...
Answered

Copilot Studio to Power Automate – file input error (UnspecifiedDataType type mismatch)

(3) ShareShare
ReportReport
Posted on by 4
Hi,
I'm trying to send an uploaded Excel file (`.xlsx`) from Copilot Studio to a Power Automate(Agent) flow. The flow expects a file parameter, but I get the following error:
 
Here is my Error Message
 

The flow ‘My Flow Name’ (Flow ID) failed because the parameter named file was declared with type UnspecifiedDataType. This type is not supported when invoking Power Automate. Currently, only Text, Boolean, and Number types are supported.

Error code: FlowActionBadRequest.

Conversation ID:
ConverSationID

Timestamp (UTC): 7/26/2025 5:41:02 AM

I attached Two images 
First image is Copilot Studio's topic and the excel's filetype is "Record".
 
And the second image is Agent flow
the agent flow's excel file type is "File"

How can I Integrate this file type ?

Expected:

 

I want to send a file from Copilot Studio that Power Automate can recognize and process properly — preferably as an attachment or stream.

 

Is there any workaround, or planned support for passing file-type parameters from Copilot Studio to Power Automate(Agent Flow)?

Categories:
I have the same question (0)
  • Verified answer
    Michael E. Gernaey Profile Picture
    47,123 Super User 2025 Season 2 on at
    Copilot Studio to Power Automate – file input error (UnspecifiedDataType type mismatch)
     
    Ahh here is a sample i just created for you

    When you initially create your flow, you will Send a Question to have them upload a file.
     
     
    Now while it is saved as a File, I prefer not to use the specific Variable beyond this, but you can, I won't.
     
    Now I want to call my Agent flow, which takes in a File Content (record)
     
    Now i go back to my Topic and I add in the Call to the Agent Flow. Whether you are calling an Agent Flow, or a Specific Flow you built and are leveraging it the same. Select the File Content input. I changed the name to UserFile.
     
    Now in my Topic I update my call details like this
    for the UserFile (record) , I add the input value as a JSON record like so
     
    {
      contentBytes:
       First(System.Activity.Attachments).Value,
      name:
       First(System.Activity.Attachments).Name
    }
     
    Where in the UI it looks like this
     
    And then I just send a message back that says I saved it.
     
    To test, I trigger my topic by typing Hello 
    I click the Attach File Paperclip, pick my file and hit send and bingo it works
     
     
    Oh and in my Flow i use the variables like this
    Where my URL Site I left out
    And in the flow it wont be called Value. it will be the dynamic properties of the UserFile input
    so click / on the line and select UserFile name and then / and UserFile content
     
     
    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey

     
  • Michael E. Gernaey Profile Picture
    47,123 Super User 2025 Season 2 on at
    Copilot Studio to Power Automate – file input error (UnspecifiedDataType type mismatch)
     
    Any updates here or feedback on my solution?
  • Suggested answer
    Michael E. Gernaey Profile Picture
    47,123 Super User 2025 Season 2 on at
    Copilot Studio to Power Automate – file input error (UnspecifiedDataType type mismatch)
     
    Just as feedback, when you say something doesn't work but do not share anything at all, it is super difficult to help as you could have a dozen issues.
     
    But please follow this.
     
     
    There are changes now based on Attachments and Record changes in Copilot, which was retrofitted into this example.
     


    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 468 Super User 2025 Season 2

#2
stampcoin Profile Picture

stampcoin 52 Super User 2025 Season 2

#3
trice602 Profile Picture

trice602 46 Super User 2025 Season 2

Featured topics