Showing results for 
Search instead for 
Did you mean: 
Advocate II
Advocate II

PDF content corrupted in Flow process

Trying to use Flow to copy a PDF from an FTP site when a new version is posted to a SharePoint Online document library. I'm using the FTP "When a file is added or modified" and the SharePoint "Create File" actions. The flow does run, but the PDF that ends up in SP is missing most of the actual content from the pages (a lot of pages in the PDF are blank).


Any suggestions?

Power Automate
Power Automate

Hi rlburg - 

Could you please share the url that points to your flow and we can take a look.

You can get to it by clicking on the flow, and taking the URL from the address bar. 


The URL should look like :


If a specific PDF file was not copied properly - providing the run details for that specfic run will help us to look at the issue.


The URL for run details should look like this -


You can't get to it by clicking on the i - icon and then clicking on a run instance. 



Thanks for the assistance.


The link to the actual flow is


I tested this morning again and the "successful" run that did not copy the file properly is

Power Automate
Power Automate

@rlburg : We are looking into this, but were not able reproduce the issue.

What is the size of your PDF file that failed to copy? 

Regular Visitor

Same problem here...

flow copy pdf attachment from an Office 365 mail to Office 365 Onedrive Business

Copy only first 24bytes of 356kb of pdf file

I think here is problem

Lookiing at log of flow of mail recevied see that field HasAttachment is null , but email has attachment


 "Importance": 1, "HasAttachment": null

About 150KB

Not applicable

I have the same problem, scanned to FTP location worked fine, PDF from document folder downloaded and rendered per the original document.  Used the flow to monitor FTP folder and copy the file to a OneDrive folder and also to a Sharepoint document library which ran successfully but document corrupted:





Not applicable

Actually was a very simple solution: when you create the FTP connection in Flow, you need to enable BinaryTransport by ticking the checkbox otherwise it brings across garbage.  Should have looked hard but at least other people can hopefully use this solution.

Hey, @rlburg!



Thank you for posting to the Microsoft Flow Community forums! I see that in one of the above replies you were offered a solution to your issue! If you feel that the reply offered an applicable and satisfactory solution, please click "Accept as Solution" so that other users can find this information and utilize it easily!


Thank You!


Flow Community Manager

- Gabriel
Community Manager
Power Automate | Power Virtual Agents
Super User Program Manager

Helpful resources

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!


Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (46,714)