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 Target is...
Power Apps
Answered

PDF Function Target is not nested and is a screen but still gives error

(0) ShareShare
ReportReport
Posted on by 244

I continually get the error that the PDF function target can't be nested. I am not trying to use a nested target. I am using the screens. What is going on? You can clearly see that the target is Screen2 which is not nested. I tried adding a container and putting the form in it and using the container. Same issue. Tried using BrowseScreen1. Same error. WHY?

 

 

 

Collect(colAttachments,{Displayname:ThisItem.Title, Id:GUID(), Value: PDF(Screen2)});

 

 

PDF_Generation_Issues_01.pngPDF_Generation_Issues_02.png

Categories:
I have the same question (0)
  • Verified answer
    PavelRudenko Profile Picture
    7 on at

    Your problem is caused by the fact you assigned PDF formula to the control (in your case it is an icon), which is sat within the form. So because of this you've got this error message (PDF formula can not be assigned to controls wihitn gallery/form/component). It is not related to the controls, you have as a formula content.

     

    Possible solution for you might be to have a timer control, which would be reset by your icon. On timer end property you could put desirable code (add record to collection)

  • CCJones Profile Picture
    244 on at

    Thanks for the response, Pavel. I will attempt to modify the action as you suggested and reply with the results. 

  • NarasimhaSwamy Profile Picture
    2 on at

    Hey Jones, Does it worked for you? If yes , Then please let me know the results. Thank you.

  • antoniorosa Profile Picture
    3 on at

    Another option...

    You can create a Botton on your Screen (example: button1) and in the Icon Gallery you add the Select() function to Trigger the Botton, (example: Select(button1)). you can set the Visible False to hidden the button1.

     

    Select(button1)

     

  • CCJones Profile Picture
    244 on at

    Thanks again for the explanation of what I did wrong. Sorry it took me more than 6 months to finally get back to it!

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard