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 / Collection not loading...
Power Apps
Unanswered

Collection not loading with all fields of records from CDS entity

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Unable to load all records from CDS entity into collection, and is getting empty records inside the fields in Collection, so that the functionality is getting difficult to achieve.

Also the LookUp Columns i not saving proper records into CDS while using in ForAll Loop

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous :

    Could you tell me:

    • Whether the current problem is the loss of records or the loss of the value of some fields?
    • How many records are in your data source?

    I assum the current problem is the loss of records.I guess the problem is caused by a delegation problem.

    The point is "Collect" and "ForAll" are all not delegable.

    If so,there are two situations:

    Case1:The Number of records is greater than 500 but less than 2000

    set the value of Data row limit for non-delegable queries to 2000

    1.JPG

    Case2:The Number of records is greater than 2000.

    The data source can be segmented and saved in batches to a collection.I assume  "Kind" is a text type field in the your CDS entity.

    Please try:

     

    Clear(TheCollection)
    Collect(TheCollection,Filter(YourEntity,Kind="Kind1"));
    Collect(TheCollection,Filter(YourEntity,Kind="Kind2"));
    ……

     

    Best Regards,

    Bof

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Bof, @v-bofeng-msft,

     

    The Issue is with loss of values in fields while fetching into collection.

    I am taking my records into one collection from CDS entity and is not having any delegation error in the code.

     

    NB: My CDS Entity has records less than 500.

    Eg: ClearCollect(CollectionName, myCDSentity);

     

    This collection loads with the fields (uniqueIdentifier and the primary field), and the remaining fields are empty (no values are loaded).

     

    If a Filter is applied while fetching into collection, the field name given inside filter will be taken and remaining fields will be empty in collection.

    I have raised a Support Ticket in Microsoft be mentioning the same issue, and any help from you or Microsoft regarding this will be highly appreciated.

     

    Thank You!

     

    Regards,

    Ashish

    Collection Snap.PNG
    Total Records - Model Driven.PNG
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous :

    Could you try to turn off "Explicit column selection" preview feature and try again?

    1.png

    Best Regards,

    Bof

  • Gyllentid Profile Picture
    894 on at

    I am having similar issues. I don't really need to fetch all columns, but I do need certain columns. The ones that doesn't come through is a phone number field, a text field (just the surname). The table doesn't contain many records and I tried to switch off the explicit column selection and reloading the app and it's still not fetching these fields. It's rather content In fetching a few others. 

     

    I got ClearCollect(colname, LookUp(Table, Column = This item.ColumnName.ColumnName))

     

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 408

#2
timl Profile Picture

timl 340 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 319

Last 30 days Overall leaderboard