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 Apps
Unanswered

Data Row Limit

(0) ShareShare
ReportReport
Posted on by 24

In 2.0.750 a new experimental feature was added: https://powerapps.microsoft.com/en-us/blog/powerapps-data-row-limit-for-non-delegable-queries/

 

I have an SQL backend that is queried and records are added to.

 

When I turn the data row limit to 1, I have found that only 1 record is available to PowerApps, which points me in the direction that SQL queries are not being delegated.

 

Any suggestions on where I should start looking? Are there particular PowerApps functions that are non-delegatable?

Categories:
I have the same question (0)
  • ThatAPIGuy Profile Picture
    925 on at

    Hi @sparky13

     

    I am not sure what function you used and what was your objective behind setting the limit to 1. However, you can refer to this link for more details - https://docs.microsoft.com/en-us/powerapps/delegation-list 

     

    Also, just as an example in your case, say if you want to filter one specific record from say a 1000 records, you can use Filter function and it will delegate the filtering to the SQL database and return the specific record.

     

    However, if you had 2 records matching the filter conditions, then it will return only one record out of the two as you have set the limit to 1 record only.

  • sparky13 Profile Picture
    24 on at

    Hi @ThatAPIGuy

     

    I am attempting to test where delegation is occurring or not. By setting the limit to 1, I believe it will become very apparent if delegation is not being used.

     

    Eg. If limit is set to 1, and the records are returned (> 1), then the query is being delegated to SQL Server. If, on the other hand, only 1 record is returned (and more than 

  • sparky13 Profile Picture
    24 on at

    ... (submitted twice)

  • CarlosFigueira Profile Picture
    Microsoft Employee on at

    What you'll get will depend on how you try to access the data. That experimental feature has a side effect of determining the buffer size that will be used when you try to load data into a local collection, which is probably what you are seeing.

     

    For example, let's say you set the data row limit to 5, and add a data source to a SQL table (Products) that has 1000 items. If you have this expression:

    Collect(collection1, '[dbo].[Products]')

    Then you'll only get 5 items in the local collection - that's also controlled by that setting.

     

    Even if you use some filter expression, you'll only get 5 items:

    Collect(collection2, Filter('[dbo].[Products], ItemsInStock > 10))

    Now if you insert a gallery (which is a control that knows how to deal with delegatable data sources, essentially requesting "new pages" when the user gets to the end of it), and set its Items property to the data source, then you'll be able to see the entire table (or filtered table, if you used a filter expression).

  • sparky13 Profile Picture
    24 on at

    Thanks for that clarification @CarlosFigueira

     

    My aim is to ensure that all SQL related queries are delegated to SQL Server.

     

    Is there a best process to ensure that this is the case?

  • Sajarac Profile Picture
    3,284 on at

    Hello there,

     

    Does any of you know if this is already solved? I started with my data in an excel sheet, once I reached 500 records I had to migrate to share point list, and I am already reaching 2000 records so soon my users will not have access to the new records, any advice?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 936

#2
Valantis Profile Picture

Valantis 604

#3
11manish Profile Picture

11manish 518

Last 30 days Overall leaderboard