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 / (Error: 400) convertin...
Power Automate
Unanswered

(Error: 400) converting Word document to PDF

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi guys, I've been trying to convert word to pdf as shown here:

 

pdf.PNG

 

But I keep getting this error even when I change Fieldid to Identifier, ID, or Name.

pdfError.PNG

 

 

Does anyone knows how to solve that?

 

Categories:
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey @Anonymous 

     

    You have to provide the proper path to the file and then the display name. For example, if the file is stored at the "Template" folder in the Shared Documents, Select the documents in the action and then for the file, type: /Template/displayname (In the place of display name, select the file display name from the create file action)

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @yashag2255 The library doesn't have subfolder yet. The file is stored in the exact main library which is written in the library name.

     

    Thanks for replying though!

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey @Anonymous 

     

    In that case, just add the /  and then after the / select the display name from the dynamic selector. 

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hey @yashag2255,

     

    Couldn't find the selector: Display Name. I used to have it in different flows but not this one.

     

    So I tried "Name" instead and the same error occurred.

  • v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @Anonymous ,

     

    As far as I know, File can only be selected from File Browse, and note that only word files can be converted into PDF files here. Other types of files are not supported.

    217.PNG

    In other words, if you want to use this action, the word file that needs to be converted is a file that has been saved, and it can be selected through File Browse during configuration.

    Hope it makes sense.

     

    Best Regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you Mr. @v-bacao-msft. But as you see in the flow. I need the convert action to happen to the same file used in the flow. Choosing a specific file after approval is not what I'm looking for. Isn't there any way to convert the file that just got approved in the same flow?

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    Can you post a screenshot of the entire flow? I have tested with the display name dynamic selector and it works as expected. 

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @yashag2255,

     

    Here is the entire flow:

    1.PNG2.PNG3.PNG

     

    As you see in the 3rd picture, I wanna convert to PDF after updating the document. Everything is working great except the converting.

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey @Anonymous 

     

    Please refer to the screenshot below: You need to add a get file metadata action from where you can get the display name. In the word action, provide the appropriate path and then the display name. In this case the document is in the root folder only. 

    se2.PNG

     Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @yashag2255,

     

    Still the same error 

     

    a.PNG

     

     

    b.PNG

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard