Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

PDF function "the file was not available on the website"

(0) ShareShare
ReportReport
Posted on by 23
I have a container with some texts and a gallery inside and I created a button that generates a PDF of this container and an attachment control for the user to download this PDF file (I also activated the PDF function in the app settings). However, whenever I click to download the PDF in the attachment control, the message "the file was not available on the site" appears and the file is not downloaded.
 
This is the function in the OnSelect of my button:
 
Set(var_pdf; PDF(MyContainer; {ExpandContainers: true}))
 
This is the function in the Items of my attachment control:

{
Name: "file.pdf";
Value: var_pdf
}

 
What am I doing wrong?

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard