cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

Collection Storage Issue

Hi All,

I have an entity having records approx=10000. And I am using collection to store data in my canvas app for offline mode. But my collection is able to store data up to 2000 records only. Why? Is there data storage limitation in collection?

My advanced setting data row limit is set up to 2000. 

How to solve this issue?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Collection Storage Issue

Yes Collection have a limitation of 2000 rows. To overcome that, create an ID increment number Column (1,2,3...) In your table.

 

Then use this code:

 

Concurrent(
ClearCollect(col1, Filter('Datasource', ID >= 1 && ID <= 2000)),
ClearCollect(col2, Filter('Datasource', ID >= 2001 && ID <= 4000)),
ClearCollect(col3, Filter(Datasource, ID >= 4001 && ID <= 6000)));
ClearCollect(colCombined, col1, col2, col3, col4, col5)

 

Then use the colCombined.

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

10 REPLIES 10
Highlighted
Super User
Super User

Re: Collection Storage Issue

Yes Collection have a limitation of 2000 rows. To overcome that, create an ID increment number Column (1,2,3...) In your table.

 

Then use this code:

 

Concurrent(
ClearCollect(col1, Filter('Datasource', ID >= 1 && ID <= 2000)),
ClearCollect(col2, Filter('Datasource', ID >= 2001 && ID <= 4000)),
ClearCollect(col3, Filter(Datasource, ID >= 4001 && ID <= 6000)));
ClearCollect(colCombined, col1, col2, col3, col4, col5)

 

Then use the colCombined.

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

Highlighted
Helper V
Helper V

Re: Collection Storage Issue

Hi @eka24 ,

As you mentioned  Collection have a limitation of 2000 rows. Then how would ClearCollect(colCombined, col1, col2, col3, col4, col5) will work? It will also have 2000 only.
I checked and it is showing 2000 record only and only col1 has 2000 records.  col2,col3 and col4 has 0 records. Why so?

Highlighted
Super User
Super User

Re: Collection Storage Issue

If you read my reply I stated that it a way of working around it to achieve more than 2000.

Have you tried the formula? What results did you get?

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Highlighted
Helper V
Helper V

Re: Collection Storage Issue

Hi @eka24 ,

Thanks for your response.

I tried your formula and colcombined has 2000 record only same as in col1.
Col1 has 2000 record and Col2,Col3,Col4 have 0 records.

Highlighted
Super User
Super User

Re: Collection Storage Issue

If your Datasource is excel, it may not work. What is your Datasource

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Highlighted
Helper V
Helper V

Re: Collection Storage Issue

Hi @eka24 ,

Datasource is CDS. Which has Sr no column as datatype Autonumber.
How to use that field in formula.

Highlighted
Super User
Super User

Re: Collection Storage Issue

Can you give your formula that showed the 2000.

Also is your Delegation limit already increased to 2000

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Highlighted
Helper V
Helper V

Re: Collection Storage Issue

Hi @eka24 ,
ClearCollect(col1, Filter('Population ', Value(SrNo) >= 00001 && Value(SrNo) <= 02000));
ClearCollect(col2, Filter('Population ', Value(SrNo) >= 02001 && Value(SrNo)<= 04000));
ClearCollect(col3, Filter('Population ', Value(SrNo) >= 04001 && Value(SrNo) <= 06000));
ClearCollect(col4, Filter('Population ', Value(SrNo) >= 06001 && Value(SrNo) <= 08000));
ClearCollect(col5, Filter('Population ', Value(SrNo) >= 08001 && Value(SrNo)<= 10000));
yes, delegation limit is set up to 2000. 

Highlighted
Super User
Super User

Re: Collection Storage Issue

You serial number seems to be a textfield. Create another column as a number field and use that.

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,276)