web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Anyone know why my col...
Power Apps
Unanswered

Anyone know why my collection would not load my SharePoint List

(0) ShareShare
ReportReport
Posted on by 282

I connected to my SharePoint List. I only have one record in the list. I tried this statement both in App OnStart and then in the Form OnVisible

ClearCollect(colGridData,"Task Assignments")

 

No Syntax errors

Categories:
I have the same question (0)
  • Ramole Profile Picture
    Super User 2024 Season 1 on at

    Hi @sonisick 

    Can you share bit more information as you're clear collect looks ok, you can also test by adding button and run it

     

    ClearCollect(colGridData,'Task Assignment')

     

    then on gallery item property add colGridData see what you will get 

     

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @sonisick 

    Change your formula to:

       ClearCollect(colGridData,'Task Assignments')

    When you put double quotes around the name, that is what is collected...a text value.

     

    I hope this is helpful for you.

  • Ramole Profile Picture
    Super User 2024 Season 1 on at

    @sonisick 

    @RandyHayes you're correct as I didn't even seen it "

    That's why always good to use without space when creating field names or data source 😀 

  • sonisick Profile Picture
    282 on at

    Actually, I mistyped it here. 

    ClearCollect(colGridData,"Task Assignments")

    The above line is copied from the OnVisible. Being a JavaScript Program I fight with single quotes--but not this time.

     

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @sonisick 

    So are you stating that you have single or double quotes on your data source name?

  • sonisick Profile Picture
    282 on at

    Actually tried it with Single Quotes--still didn't load

  • sonisick Profile Picture
    282 on at

    Thanks, that makes sense. I'm now getting my headers but no data.

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @sonisick 

    First, keep in mind that loading records from a datasource into a collection is just duplication of data and a performance issue.  So, only use this if you really need to have all of your data loaded in memory of the app.

     

    Second, make sure your datasource is refreshed in the app.  Go to the datasource list and on the menu, refresh the list.

  • Ramole Profile Picture
    Super User 2024 Season 1 on at

    @sonisick 

    Collecting data source in to memory not good idea and it will decrease you're performance 100% as your data grows then you will feel, you're loading will take forever plus you have to refresh each new record, I have been in that road  waste my time but been rescued by @RandyHayes till today I appreciate him for that. 

    take his advice and you will thank him later.

    Secondly if you're loading the data in the memory because of delegation no need it just filter you're data correctly.

    Example if you need to filer a date month and year 

    To avoid delegation problem, you can create a condition a filter data date due, instead of Month functions and will be delegable also will pull all you're data no matter which data source, I hope that make sense.
    by the way @RandyHayes  is a master and honestly I have learned lot from him. 
     

     

  • sonisick Profile Picture
    282 on at

    How do you load a datagrid?

     

    Do you need to update each row as changes are made?

     

    Can you filter the datasource before you load it into a collection?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard