LowCodeStacks™
Sign in

Delegation in Power Apps: why your gallery stops at 500 rows

Your app shows some records but not others, and there is no error. Here is why delegation causes it, how to spot it, and the formula rewrites that fix it.

Power AppsFix a problem7 min read

4 sources · Updated By · drafted with AI help, checked by a personHow we write guides

If a gallery shows only some of your records, or a search can't find an item you know exists, the cause is almost always delegation. Part of the formula can't run on the data source, so Power Apps downloads only the first 500 rows and works on those. Nothing errors. The results are just incomplete.

This tutorial explains what is happening, how to find the formulas that cause it, and how to rewrite them so they work on every row.

Two ways a formula meets a large SharePoint list. Delegable, for example Filter(Tasks, StartsWith(Title, txtSearch.Text)): every row is checked at the source; SharePoint finds the matching items and only those come back. Not delegable, for example Search(Tasks, txtSearch.Text, Title): Power Apps downloads only the first 500 rows (the data row limit, 10,000 at most) and runs the formula on the device. The rows after the limit are never looked at, so a matching record past the limit simply doesn't appear, and nothing errors. Fix it in three steps: find it by the yellow warning triangle and the blue wavy underline; rewrite it, for example StartsWith instead of Search, = Blank() instead of IsBlank, and calculations moved off the column; then test with a data row limit of 1 while you build, and set it back before you publish.
A delegable formula checks every row at the source; a non-delegable one sees only the first 500 rows, with no error.

What delegation means

When you write Filter(Tasks, Status = "Open") against a SharePoint list, Power Apps doesn't download the whole list. It sends the condition to SharePoint, SharePoint finds the matching items, and only those come back. That hand-off is called delegation, and it is what lets an app work with lists of any size.

A data source can only run the operations it understands. If any part of your formula uses something the source can't do, Power Apps can't delegate any of that query. It falls back to downloading a limited number of rows and running the whole formula on the device.

Why 500, and why sometimes more

The limit for work done on the device is the app's data row limit:

  • It is 500 by default.
  • Microsoft Learn now says you can raise it to 10,000 in Settings > General > Data row limit (checked 21 October 2026). It gives no date for the change, and a few older Learn pages still say 2,000. If Studio won't accept more than 2,000 in your app, that's the limit your app has today.
  • It can't go higher, and a higher limit makes the app slower: up to 10,000 rows now travel to the device before the formula runs, especially costly with wide tables.

So an app that "stops at 500", "stops at 2,000" or "stops at 10,000" is showing you its data row limit. Records after that point are never looked at, so a matching record one row past the limit simply doesn't appear.

Warning

Raising the limit hides the problem until your data grows past it, at up to 10,000 rows (or 2,000, where Studio still caps it there). Treat it as a stopgap, not a fix: a delegable formula has no such ceiling.

Find the formulas that don't delegate

Power Apps flags them for you, but only when the data source is one that supports delegation (SharePoint, Dataverse, SQL Server and Salesforce, among others):

  • A yellow warning triangle appears on the control.
  • A blue wavy underline marks the part of the formula that can't be delegated.

Tip

While you build, set the data row limit to 1. Any formula that isn't delegated now returns at most one record, so the problem is obvious in testing instead of surfacing months later in production. Set it back before you publish.

What SharePoint can and can't delegate

Every data source has its own list, and the delegation cheat sheet covers SharePoint, Dataverse and SQL Server. SharePoint is where most people meet this problem, and its rules are narrower than Dataverse's:

In a Filter on SharePointDelegates?
= on text, numbers, dates, yes/no, choicesYes
<, >, <=, >= on numbers and datesYes
<, > on textNo
StartsWith on textYes
Search, and the in operator for "contains"No
IsBlank on textNo
NotNo
Person columnsOnly on .Email and .DisplayName
The ID columnOnly =

Joining conditions with And (&&) or Or (||) keeps them delegable, as long as every part is.

Four rewrites that fix most apps

The examples use a SharePoint list called Tasks with a text column Title, a date column DueDate and a text column ReviewNotes.

Search and in look for text anywhere in a column, and SharePoint can't do that.

powerfx
// Not delegable on SharePoint: only the first 500 rows are searched
Search(Tasks, txtSearch.Text, Title)

StartsWith is delegable. It matches the beginning of the text, which is what most people type into a search box anyway.

powerfx
// Delegable: searches every row
Filter(Tasks, StartsWith(Title, txtSearch.Text))

The modern text input control works the same way: Microsoft Learn's page for it names Text as the property that holds what the user typed.

2. Checking for empty values

powerfx
// Not delegable on SharePoint for text columns
Filter(Tasks, IsBlank(ReviewNotes))

Comparing with Blank() delegates:

powerfx
// Delegable on SharePoint
Filter(Tasks, ReviewNotes = Blank())

These two aren't exactly the same. IsBlank also treats an empty string ("") as blank, and = Blank() doesn't. For most lists that difference doesn't matter, but check it for yours. This trick works for = only, not for <>.

3. Calculations on a column

Functions that transform a column value, such as Year(), Text(), Left() or Len(), can't be delegated.

powerfx
// Not delegable: Year() runs on every row's DueDate
Filter(Tasks, Year(DueDate) = 2026)

Move the calculation to the other side of the comparison. Values that are the same for every row, such as Date(2026, 1, 1) or a variable, are sent to the data source as constants and don't block delegation.

Note

Be careful with Today() and Now(). Microsoft's general guidance treats them as constants, but its Dataverse page lists them as not delegable for date columns. Put the value in a variable first, for example Set(varToday, Today()), and compare the column with the variable.

powerfx
// Delegable: compares the column with two constant dates
Filter(
    Tasks,
    DueDate >= Date(2026, 1, 1) && DueDate < Date(2027, 1, 1)
)

4. Copying a list into a collection

powerfx
// Only the first 500 rows (or your data row limit, up to 10,000) are copied
ClearCollect(colTasks, Tasks)

ClearCollect can't be delegated. Copying a large list into a collection "to make filtering easier" quietly truncates it. Filter the source first with a delegable condition, and collect only what you need:

powerfx
ClearCollect(colMyOpenTasks, Filter(Tasks, Status = "Open" && Owner.Email = User().Email))

This result is complete as long as it stays under your data row limit.

When you can't make it delegable

Some needs, such as "contains" searches across tens of thousands of items, don't have a delegable form on SharePoint. The fix then is to move the work to where the data lives:

  • Dataverse delegates far more, including in for "contains" searches on text.
  • Views or indexed columns in the data source can do the filtering before Power Apps asks.
  • Narrow the data first with a delegable filter, such as by owner, status or date range, so the remaining non-delegable step works on a small set.

Checklist

  • No yellow triangles on controls that read large data sources.
  • The data row limit is set to 1 during testing, and every screen still works.
  • Search boxes use StartsWith on SharePoint, not Search or in.
  • No calculations wrap a column inside Filter.
  • No ClearCollect of a whole large list.

The examples follow Microsoft's documented delegation behaviour for SharePoint and Dataverse. Delegation support differs between data sources, so check your connector's list before relying on a specific function.

Sources

Add LowCodeStacks as a preferred source on Google

Did this fix it?

Get the weekly email

New guides and updates from LowCodeStacks, every Tuesday. One email a week, no more.

From LowCodeStacks, Regina, SK, contact@lowcodestacks.com. You can unsubscribe any time, from the link in every email or in your privacy settings. See the Privacy notice.

Comments

No comments yet. Share what worked for you.

Sign in to comment. Comments show under a display name you choose, never your email.