Skip to main content

Notifications

Community site session details

Community site session details

Session Id : R/oy7yFUGksLQ90vlnMz1x
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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

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

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

Overall leaderboard

Featured topics

Loading started