Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - Building Copilot Studio Chatbo...
Unanswered

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

(1) ShareShare
ReportReport
Posted on by

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.

 

 

 

 

Categories:
  • Suggested answer
    Romain The Low-Code Bearded Bear Profile Picture
    292 on at
    Unable to Pass “file” Parameter from Copilot Studio to Power Automate – Record Type Mismatch Error
    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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics