Skip to main content

Notifications

Community site session details

Community site session details

Session Id : FXzS34QRa7WCNPu9L/TKCR
Power Apps - Microsoft Dataverse
Unanswered

Issues loading document to Dataverse generated with PDF() function

Like (0) ShareShare
ReportReport
Posted on 3 Apr 2024 16:05:37 by 77

I've discovered a very strange bug when generating a PDF using the PDF() function then saving that file to dataverse.  If the file is loaded to dataverse with a .pdf file extension, most of the elements of the pdf are missing.  Basically the entire first page is blank, additional pages seem to display but nothing on the first page, and if the document is only 1 page I just get a blank page.

 

Loading the file to dataverse with no extension, then downloading it and renaming it with a .pdf extension works just fine.

 

The generated PDF looks fine in the pdf viewer in the app.

 

Sample code that works:

 

Set(Document, PDF(Myscreen));
Set(filename, "MyDoc")
Patch(MyTable,MyRecord,{File:{FileName:filename,Value:Document}});

 

 

Sample code that yields blank document:

 

Set(Document, PDF(Myscreen));
Set(filename, "MyDoc.pdf")
Patch(MyTable,MyRecord,{File:{FileName:filename,Value:Document}});

 

Categories:

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Microsoft Dataverse

#1
mmbr1606 Profile Picture

mmbr1606 22 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 17

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 15 Super User 2025 Season 1

Overall leaderboard

Featured topics

Loading started