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 / The data of the pdf fi...
Power Automate
Unanswered

The data of the pdf file was transferred, but the text extraction of the pdf failed

(0) ShareShare
ReportReport
Posted on by 2

Hello,

I have created a site that extracts text from PDF files. When I call this site locally, it successfully extracts text from PDFs (e.g., using the following command in cmd:
curl -X POST -H "Content-Type: application/pdf" --data-binary "@E:\TestFiles\Easy Chicken Curry02.pdf" "https://xxxxxxxxxxxxxxxxx.net/api/GetPDFText").

However, when I create a cloud flow using Power Automate to call this site, the extraction functionality fails. I suspect that the PDF file format may have been altered during the upload process, preventing my site from processing it correctly. Could you advise on how to resolve this issue? Below are screenshots of my configuration:

I have the same question (0)
  • Power Platform 1919 Profile Picture
    2,205 Super User 2026 Season 1 on at
    Hi @CU08120844-0,

    Can you share the exact error message which you're seeing.
    based on your assumption, that file is altered can you try 
    base64ToBinary() function in power automate, this will convert the file to binary content and try again, if this helps. 
  • CU08120844-0 Profile Picture
    2 on at

    Thank you for your response.

    To clarify, I am using a third-party plugin to implement the text extraction functionality. Based on my current configuration (as shown in previous screenshots), the error "unsupported format" is being reported by the third-party plugin. While configuring according to your suggestions eliminates the error, it does not return the extracted text.

    The reason I suspect Power Automate may be modifying the uploaded data is that when I call the site via the cmd method (as previously mentioned), extraction works normally, but it fails when using the Power Automate platform.

    I would like to inquire: does Power Automate perform any data adjustments during the file upload process? Is it possible to configure Power Automate to pass data to my site exactly as it does with the cmd command upload method?

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 > Power Automate

#1
Vish WR Profile Picture

Vish WR 505

#2
Haque Profile Picture

Haque 446

#3
Valantis Profile Picture

Valantis 395

Last 30 days Overall leaderboard