Power Automate - Convert HTML to PDF outputting a blank page

Yann Dimitri Tchoteu Nitcheu 10 Reputation points
2026-05-16T21:26:57.48+00:00

Yesterday, my flow randomly started giving me a blank page. I changed nothing from the regular sequence. My HTML file is being created successfully. Do you have some ideas on what is happening?
User's image

Microsoft 365 and Office | OneDrive | For business | Windows

2 answers

Sort by: Most helpful
  1. Lia V 8,115 Reputation points Microsoft External Staff Moderator
    2026-05-16T22:00:10.5866667+00:00

    Hi @Yann Dimitri Tchoteu Nitcheu,

    Good day and thank you for sharing the details. I understand how concerning it can be when a previously working flow suddenly starts producing a blank PDF without any changes on your side.

    Since my current category primarily focuses on Office 365 products, and your concern relates to Microsoft Power Automate, I want to ensure you receive the most accurate and effective assistance. For this reason, I recommend posting your question in the Microsoft Power Platform Community Forum. In this forum, you'll get the most qualified group of respondents and other partners who read the forums regularly can share their knowledge or learn from your interaction.    

    User's image

    I apologize for redirecting you to a different community, as the members of this category focus on Office 365 concerns and have limited knowledge about Power Automate. To help you get quicker and better assistance, we are guiding you to the appropriate resource. 

    As community moderators, we kindly ask for your understanding that our access to internal development details is limited. Our primary role is to guide users toward the appropriate resources and support channels. While we may not have visibility into performing deeper backend analysis, we’ll continue doing our best to support you within the scope of our responsibilities.     

    If you find my post useful, kindly consider upvoting it. Doing so can assist others in the community who may have similar questions in finding solutions more quickly.

    Thank you once again for your precious time and engagement.  


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have any extra questions about this answer, please click "Comment".  

    Note: Please follow the steps in this documentation to enable e-mail notifications if you want to receive the related email notification for this thread.  

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-05-16T21:27:10.66+00:00

    The flow structure is valid, so the issue is likely with the HTML content or the OneDrive conversion step rather than the Create file actions themselves.

    Use these checks and adjustments:

    1. Confirm the HTML file content
      • Open the generated .html file directly from OneDrive in a browser.
      • Verify that it renders correctly and is not empty or containing only whitespace.
      • If it is blank or malformed, fix the step that builds HTMLContent before the Create file action.
    2. Ensure the file is fully created before conversion
      • The OneDrive Convert file using path action relies on the path of the created file.
      • If the HTML file is large or created in a location that syncs slowly, the converter can run before the file is fully available and produce an empty/blank PDF.
      • Add a short delay before the Convert action (for example, a Delay action of a few seconds) and test again.
    3. Validate the path used in “Convert file using path”
      • Confirm that the File Path passed into Convert file using path exactly matches the path of the HTML file created in the previous step.
      • If the folder or file name changed, the converter might be pointing to a different or empty file.
    4. Test with a simple static HTML
      • Temporarily replace HTMLContent with a very simple static HTML string (for example, a basic page with plain text) and run the flow.
      • If the PDF is correct with simple HTML, then the issue is with the dynamic HTML (for example, unsupported tags, scripts, or CSS that the converter cannot handle). Simplify or adjust the HTML accordingly.
    5. Check for known issues and limits
      • Review the OneDrive Convert file connector documentation for any known issues or limitations that might affect HTML-to-PDF conversion, such as unsupported constructs or size limits.

    If the above steps confirm that the HTML is correct and the path is valid but the PDF is still blank, recreate the Convert file using path action in the flow designer to clear any hidden configuration corruption, then test again.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.