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 Function stopped w...
Power Apps
Unanswered

PDF Function stopped working

(0) ShareShare
ReportReport
Posted on by

Hi all, i have some code that was working fine and has suddenly stopped working i cant figure out whats wrong but its saying its the pdf creation ive made bold what is showing as the issue any help appreciated :

 

Set(varpdfvisible,false);Set(varpdfblob,PDF(Form_PDF,{Size: PaperSize.A4, Orientation: PaperOrientation.Portrait}));Set(varpdfvisible, true);
Office365Outlook.SendEmailV2(emailadd, varfgasasset.'Building Name'&" - "&varfgasasset.'Building ID'&" - "&Label3_17&"-FG16", "New FG16 submission From "&User().Email,{Attachments: Table({Name: "test - FG16.pdf", ContentBytes: varpdfblob})});
ResetForm(Form2);
If(maintvis1,UpdateContext({maintvis1:!maintvis1}));
If(Disvis1,UpdateContext({Disvis1:!Disvis1}));
If(addvis1,UpdateContext({addvis1:!addvis1}));
If(Remvis1,UpdateContext({Remvis1:!Remvis1}));
If(Leakvis1,UpdateContext({Leakvis1:!Leakvis1}));
Navigate('R-Maintenance')
Categories:
I have the same question (0)
  • Devvj Profile Picture
    1,132 Super User 2024 Season 1 on at

    Hi @hstep 

    Got a simular error the other day just based on that the experimental feature was turned off for some reason, I guess you have checked that tho.

    -------------------------------------------------------------------------
    If this is the answer for your question, please mark the post as Solved.
    If this answer helps you in any way, please give it a like.

  • hstep Profile Picture
    on at

    i hadnt ..... but i have now and it was still on 😞

  • Devvj Profile Picture
    1,132 Super User 2024 Season 1 on at

    Tested it alittle, it seems like i cant use Form directly as a Target, i then tested to just put the form in a container and refered to the container instead, and it worked again.

    PDF(containerFormPDF,{Size: PaperSize.A4, Orientation: PaperOrientation.Portrait}))

     

    -------------------------------------------------------------------------
    If this is the answer for your question, please mark the post as Solved.
    If this answer helps you in any way, please give it a like.

  • hstep Profile Picture
    on at

    so the PDF function is not showing up at all - ive tried turning it on and off restarting , but i can no longer use the PDF function i get some pdf password options 

    hstep_0-1692959760223.png

     

  • Devvj Profile Picture
    1,132 Super User 2024 Season 1 on at

    @hstep 
    That could be dependant on where you are refering to it, for example if you try to add it to a OnSelect property on a button you get this

    Devvj_0-1692959943219.png

     

    If i try the same on the Text property I dont get intellisense for it anymore

    Devvj_1-1692959998000.png

     

  • hstep Profile Picture
    on at

    turns out it doesnt work in modern buttons - so ive got it showing again , and ive added the pdf create code to a new button and it works fine. must be something else causing it

  • hstep Profile Picture
    on at

    ok so i got this working , turn out it wasnt liking the if statements later on :

     

    If(maintvis1,UpdateContext({maintvis1:!maintvis1}));
    If(Disvis1,UpdateContext({Disvis1:!Disvis1}));
    If(addvis1,UpdateContext({addvis1:!addvis1}));
    If(Remvis1,UpdateContext({Remvis1:!Remvis1}));
    If(Leakvis1,UpdateContext({Leakvis1:!Leakvis1}));
     
    so ive changed these to work a different way.

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard