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 / Image not showing when...
Power Automate
Unanswered

Image not showing when converted to pdf

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,
I'm struggling with a weird problem.
I'm making a flow that treat a number of Images wich varies between 0 and 3, from items of a Sharepoint list. No problem to get the content (images) of my sharepoint , nor to convert them to dataUri(base64). The creation of the HTML is good (i'm a front-end developper), and images show when I test the HTML on code pen. But for whatever reason, chen I convert it to pdf using the oneDrive tool, html text is ther but not the images (little grey square with a red cross). Any Idea on why?

Categories:
I have the same question (0)
  • rrovira Profile Picture
    Microsoft Employee on at

    Hello, @Anonymous!

     

    Could you please share a screenshot to see how the flow is configured? 

     

    Thank you and cheers!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    GBarnieu_3-1631861480943.pngGBarnieu_2-1631861455493.png

    Here they are. 
    I get the last element from my sharepoint list (1 element, and ID order by desc), I get the attachements from it, wich I convert to DataUri (I put it in a apply to each because the number of attachelents can vary from 0 to 3).
    Then I concatenate it with an html <img> tag.
    A "html" variable is created before, with the body, html etc..
    Aand I concatenate all my <img>+dataUri to the main html variable. 
    Then it's converted to pdf, and sent.
    As I said, the process works because when I test the HTML as a "real" website, the images show.
    Hope you can help me!

  • rrovira Profile Picture
    Microsoft Employee on at

    Hello again, @Anonymous! 

     

    Reading through some posts, I read that some users where having this similar issue because of the dataUri expression fixing it by simply removing an unnecesary pair of ' , however I would recommend you to check this video if you haven't PowerApps PDF Generator using Microsoft Flow PDF Converter - YouTube as it shows step by step how to do this. 

     

    Another common issue I read was more of an old well known error. If this was the case, I would recommend you to open a support ticket. Get Help + Support - Power Platform | Microsoft Docs

     

    Cheers,

    Rodrigo!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 997

#2
Valantis Profile Picture

Valantis 810

#3
Haque Profile Picture

Haque 642

Last 30 days Overall leaderboard