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 / Collections On Start
Power Apps
Unanswered

Collections On Start

(0) ShareShare
ReportReport
Posted on by

Hi

Anyone have any idea why it appears that my collections are not 'collectin' OnStart (which is enabled)?

 

I hae receiving an error with a filtered gallery the first time it is shown on a screen. The items are from a collection. As soon as the gallery is shown the first time, all is well, but it seems that the collection is not being created when the app first starts, only when I refresh the gallery?

Categories:
  • AmeerJab Profile Picture
    370 on at

    Hello,

     

    so on the Onstart you define a collection, and when you use the collection in a gallery it gives you errors?, can you please provide more details 

     

  • PowerNuggets Profile Picture
    360 on at

    hi @jed76 

     

    You can change the properties of your first Screen. The Screen has an OnVisible property which performs actions when you navigate to the screen. This applies to the very first screen of the app too.

     

    So you can set the OnVisible property of Screen1 to:

    Collect(collectionName, SharepointListSource)

     


    _____________________________________________________________________________________
    Like my answer? - Hit that Thumbs Up. Resolved the Issue? - Hit Accept as Solution.

     

    KR,

  • timl Profile Picture
    37,287 Super User 2026 Season 2 on at

    Hi @jed76 

    This is most likely a timing issue. Power Apps isn't finishing the collection of data when it shows the gallery for the first time.

    You can experiment with turning off the 'use non blocking OnStart rule'. That might help to resolve the problem.

     

    timl_0-1689929694397.png

     

  • jed76 Profile Picture
    on at

    I think I've fixed it!

     

    I was using some logic to display a label informing the user of a duplicate item. However, instead of referencing the collection within the label I was referencing directly to the data source. So the gallery was using the collection and the visible property of a label within the gallery was referencing the data source directly. I have now changed the query to the collection and it seems to have done the trick!

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard