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 / Problem with generated...
Power Automate
Suggested Answer

Problem with generated PDF not producing clickable links

(0) ShareShare
ReportReport
Posted on by 2
I have this flow which generates a PDF with text and links which comes from a lookup column in Lists.  The Flow generates perfect PDF EXCEPT the links are not clickable. Well, the browser tells me that they try to open file:///C:/MetaTempData/ProcessFiles/[number]/input.html, i.e. the links are not generated correctly in the Flow. The crazy thing is that I created and tested the flow afew months ago and then the links worked fine. 
 
Do you have any ideas? Thanks in advance
Categories:
I have the same question (0)
  • Suggested answer
    Sunil Kumar Pashikanti Profile Picture
    2,318 Moderator on at
    Hi @Rikke1,
     
    This type of issue usually happens when Power Automate’s HTML --> PDF renderer changes how it interprets links inside the HTML you generate. Even though nothing changed in your Flow, the backend rendering engine can update, and suddenly URLs stop being treated as absolute hyperlinks and instead get interpreted as local file paths such as:

    file:///C:/MetaTempData/ProcessFiles/.../input.html
     
    This is exactly what happens when a link inside the HTML is missing a proper href="https://..." or when the renderer fails to recognize the URL as an external HTTP link.

    Here are the most reliable fixes:
     
    1. Make links explicitly absolute
    Ensure the URL inside your HTML has the full protocol and domain, e.g.:
    HTML<a href="https://learnit.itu.dk/local/coursebase/view.php?ciid=2087&view=public">    Course Link</a>Show more lines
    Even if your content looks like a full URL, sometimes the HTML generator escapes characters or converts the href into a relative link.
     
    2. Disable HTML encoding before PDF creation
    If you are feeding dynamic text from a Lists column, Power Automate sometimes encodes the URL like:
    https%3A%2F%2Fcloud.timeedit.net%2F...
    This causes the renderer to treat it as a literal string.
    Fix:
    Use “Compose” or “Replace” to decode %3A --> :, %2F --> /, or use:
         decodeUriComponent(<yourLink>)

    3. Ensure your HTML contains real anchor tags
    If you're inserting raw URLs like:
    https://cloud.timeedit.net/...
    PDF conversion will often convert them to plain text → no link.
    Wrap them manually:
         <a href="@{items('Apply_to_each')?['URLColumn']}">Open link</a>Show more lines
     
    4. If you're using Convert HTML to PDF (OneDrive for Business)
    That action is known to occasionally regress and treat links as local resources.
    More stable workaround:
    Use the Word Template --> PDF approach
    (Word maintains link metadata far more reliably)
    Or use Encodian / Muhimbi / Plumsail PDF connectors if available

    5. Compare working vs broken HTML
    When the issue comes and goes, copy the final HTML content of both versions from “Peek code”.
    You’ll likely see something like:
         Missing "https://" prefix
         HTML‑encoded characters inside href
         Link placed inside text but not inside an <a> tag
    Fixing these ensures stability even if backend behavior changes again.
     
    ✅ If this answer helped resolve your issue, please mark it as Accepted so it can help others with the same problem.
    👍 Feel free to Like the post if you found it useful.

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

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard