Re: Collection not loading with all fields of records from CDS entity
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

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