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 Apps / "PDF Creation Failed"
Power Apps
Unanswered

"PDF Creation Failed"

(1) ShareShare
ReportReport
Posted on by 276

Hi All,

I have an app which uses the PDF function and in it i am sending the PDF via an email.

 

Usually this works just fine, but every now and again the user gets an error saying that the PDF creation has failed.  Is anyone sure why this might happen? it also stops the sendemail function from running, so has been failing to send the emails without our isers' knowledge. They seem to have ignored the notification bar at the top, however in fairness to them, i do have a container that pops up saying "Order sent Sucessfully"

I have just added in some error management to make users aware of this and changed my pop up so that a different one pops of in the case of an error.  I have also created an errorlog list that will be emailed to myself if an error happens, however i was wondering if anyone else has had issues with this error and if there are anyways to stop it happening?

I have put the code im using below, but like i said, this works 99% of the time.

Office365Outlook.SendEmailV2(If(IsBlank(ComboBox3.SelectedItems),ComboBox3.SearchText,Concat(ComboBox3.SelectedItems,EmailAddress & ";")),If(Dropdown8.Selected.Value = "Call Off", "CALL OFF ORDER REF: " & TextInput3.Text, "ORDER REF: " & TextInput3.Text),EmailBodyText.HtmlText,

{Cc:"ordering@be.co.uk;" & If(IsBlank(ComboBox3_1.SelectedItems),ComboBox3_1.SearchText,Concat(ComboBox3_1.SelectedItems,EmailAddress & ";")),

IsHtml: true ,Importance:"Normal", Attachments:Table({Name:If(Dropdown8.Selected.Value = "Call Off", "CALL OFF ORDER: "& TextInput3_2.Text & " - " & TextInput5.Text & " .pdf" ,"Purchase Order: " & TextInput3_2.Text & " - " & TextInput5.Text & " .pdf"),ContentBytes:PDF(poPDF,{Size:PaperSize.A4,Orientation:PaperOrientation.Portrait, ExpandContainers:true})})});

 

Thanks 

Categories:
  • d3ell Profile Picture
    276 on at

    Any Help possible on this!?

    😬

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 Apps

#1
11manish Profile Picture

11manish 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard