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 / Power Automate / Upload file to Dataverse
Power Automate
Suggested Answer

Upload file to Dataverse

(1) ShareShare
ReportReport
Posted on by 37
Hi everyone,
I’m working on a Power Automate flow where I retrieve a PDF file from OneDrive and upload it to a Dataverse table. Here's what I've configured so far:
1. **Get File Content from OneDrive**:
   - Action: "Get file content"
   - File: PDF file stored in OneDrive (example: `PO XX123456 ABC MM N21274.pdf`)
   - Infer Content Type: Yes
2. **Upload File to Dataverse**:
   - Action: "Upload a file or an image"
   - Table: `po_content`
   - Row ID: Dynamically retrieved from the Dataverse table
   - Column Name: `attachment`
   - Content: Set to the `Body` output from "Get file content"
   - Content Name: Set to the filename including the `.pdf` extension (e.g., `PO XX123456 ABC MM N21274.pdf`)
Problem:
When I try to upload the file, I get the following error:
```
A supported MIME type could not be found that matches the content type of the response. None of the supported type(s) match the content type 'application/octet-stream'.
```
What I’ve Tried:
- I’ve confirmed that the file is indeed a PDF and is recognized as `application/pdf`.
- The "Get file content" action from OneDrive works as expected and retrieves the PDF.
- The file name is correctly set with the `.pdf` extension.
- I’ve also ensured that the Infer Content Type option is set to "Yes."
However, the content type mismatch persists, with the file being treated as `application/octet-stream` instead of `application/pdf`.

Has anyone encountered this issue before, and how can I force the correct content type (application/pdf) during the upload to Dataverse? Any suggestions on how to resolve this content type mismatch would be appreciated!
Thanks!
Categories:
I have the same question (0)
  • Suggested answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at
    Hi,
     
    I tried to do from my side and it works fine- could you try as suggested in below post ?
     
     
    Thanks & Regards,
    Nived N 
    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs
     Found my answer helpful? Please consider marking it as the solution!
     Your appreciation keeps me motivated. Thank you!

     

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 784

#2
Valantis Profile Picture

Valantis 589

#3
Haque Profile Picture

Haque 522

Last 30 days Overall leaderboard