cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rlburg
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?

9 REPLIES 9
Sunay
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 : 

https://flow.microsoft.com/manage/flows/93cbd448-db01-4a3b-a3cf-abfe6062f67b

 

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 - https://flow.microsoft.com/manage/flows/93cbd448-db01-4a3b-a3cf-abfe6062f67b/runs/085873912064258239...

 

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 https://flow.microsoft.com/manage/flows/f0002614-7795-4eaa-8131-b51cbc792364/

 

I tested this morning again and the "successful" run that did not copy the file properly is https://flow.microsoft.com/manage/flows/f0002614-7795-4eaa-8131-b51cbc792364/runs/085873906674874801...

Sunay
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? 

compkos
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

Anonymous
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:

 

Flow: https://emea.flow.microsoft.com/manage/environments/Default-ed4fc3fc-2f96-48c5-a1ef-1c3ed19b77d0/flo...

Run1: https://emea.flow.microsoft.com/manage/environments/Default-ed4fc3fc-2f96-48c5-a1ef-1c3ed19b77d0/flo...

Run2: https://emea.flow.microsoft.com/manage/environments/Default-ed4fc3fc-2f96-48c5-a1ef-1c3ed19b77d0/flo...

Anonymous
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!

-Gabriel

Flow Community Manager

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



Helpful resources

Announcements
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!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (46,714)