cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
powernaps
Level: Powered On

Convert word to PDF error 400: There was an error accessing the file

I'm having trouble with the word to PDF step in my flow.

 

For some reason, it runs perfectly when you put in the file name manually (1):

msflow2.PNG

 

But when you try to do it with dynamic content, it fails (2):

msflow3.PNG

I looked at both flows after they ran, and they seem to have the exact same parameters, to the letter. Yet one fails (as you can see below). so I am at a loss of what to do.

 

msflow1.jpg

 

 This is the entire flow at the moment (I've been trying different dynamic values in the word-to-pdf but no luck):

msflow4.jpg

4 REPLIES 4
Super User
Super User

Re: Convert word to PDF error 400: There was an error accessing the file

Can you try the dynamic content value ID instead of name? That might fix it!

v-zhos-msft
Level 10

Re: Convert word to PDF error 400: There was an error accessing the file

Hi @powernaps,

I have made some tests for your issue on my side.

I have tired dynamic content value like: ID ,Name, File Name with extension.

They all have the same issue like yours.

So, I’m afraid you can only choose the File manually here.

As the Connector Reference explain: you can only ' Select a Word file through File Browse '.

https://docs.microsoft.com/en-us/connectors/wordonlinebusiness/#getfilepdf

If you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

Best Regards

Zhongys

 

StefanR
Level 8

Re: Convert word to PDF error 400: There was an error accessing the file

 
i use the following workaround:
 
At the design time of the Flow, I have a default document within my library called "default.docx" for example.
 
At runtime, my Flow gets a word template (by using the "Populate a MS Word template" action), in my case an invoice, and fills it with the invoice data.

After that my Flow saves the populated word document as "default.docx". This replaces my document that i put there at design time.
 
The fact, that the default.docx has been there a design time, lets me select the file with the file picker of the Convert Document to PDF-Action.
 
Now the conversion works well and the Flow can saves the file content to SharePoint with name you want, "Invoice-12345.pdf" for example.
 
Hope that helps.
 
Best regards
Stefan
Highlighted
OlafStetzer
Level: Powered On

Re: Convert word to PDF error 400: There was an error accessing the file

Hi all,

 

I am looking for the same feature as well. There is now an idea thread for this feature.
Please vote for it if you need/want this, too:

 

https://powerusers.microsoft.com/t5/Flow-Ideas/Word-Online-PDF-Converter-should-take-dynamic-file-in...

 

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 506 members 4,620 guests
Please welcome our newest community members: