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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Unable to Pass “file” ...
Copilot Studio
Suggested Answer

Unable to Pass “file” Parameter from Copilot Studio to Power Automate – Record Type Mismatch Error

(1) ShareShare
ReportReport
Posted on by 7

Description:
I have a Power Automate flow that is designed to accept a file input (image/document). However, when I try to trigger this flow from Copilot Studio, I receive a type mismatch error like the following:

{
  "$kind": "BindingIncorrectTypeError",
  "bindingKey": "file",
  "inputDisplayName": "file",
  "typeError": {
    "$kind": "IncorrectTypeError",
    "expectedType": { "$kind": "Unspecified" },
    "assignedType": {
      "$kind": "Record",
      "properties": { ... }
    }
  }
}

Issue Summary:

  • My Power Automate flow expects a file parameter (of file type).

  • Copilot Studio attempts to pass this input as a Record.

  • This causes a BindingIncorrectTypeError on the Power Automate side.

 

Expected Behavior:

Copilot Studio should be able to pass file inputs in a format that Power Automate recognizes as a valid file (e.g., including name, contentBytes, and contentType). Currently, it sends a Record object which leads to a mismatch.

 

Use Case:

The user uploads an image or document via Copilot Studio. This file needs to be sent to Power Automate for processing in other systems. However, sending the file is currently blocked due to type incompatibility.

 

Request:

Please add support for Copilot Studio to send file inputs to Power Automate flows in a format that is accepted as a true file input.

 

 

 

 

Ekran görüntüsü 2025-06-02 154837.png
I have the same question (0)
  • Suggested answer
    Romain The Low-Code Bearded Bear Profile Picture
    2,564 Super User 2026 Season 1 on at
    hello :) 
     
    Activity.Attachment is a table (a record in copilot studio language). The attachment (s) are in the table case. Just take , you could use the power FX function " First() " to take the first element of the table "activity.attachement" then you have to take what you need (binary, file, body, etc etc) in the table .
     
    Hope this help you to go further, it work very well :)

    When i call Azure AI Image description i use this one to get the file : 
     
    First(System.Activity.Attachments).Content
     
    :) work very well (photo below)

     
    If it solve the problem, please check answer :) it's important :)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 673

#2
chiaraalina Profile Picture

chiaraalina 170 Super User 2026 Season 1

#3
deepakmehta13a Profile Picture

deepakmehta13a 112

Last 30 days Overall leaderboard