cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nagestiada
Post Partisan
Post Partisan

delegation warning the search part of this formula might not work correctly on large data sets

Search('PurchaseList',TextInput1.Text,"EID","PID","PList1")



I have this simple code above but getting an error "The search part of this formula might not work correctly on larger data set."

When I only have less than 100 rows.

 

Anyone know why and how can I fix it?

5 REPLIES 5
eka24
Super User
Super User

Do have a number field as part search. Also check if the delegation limit in the FILE.. Advance Setting... Delegation is less than 2000. If so increase it.

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

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.

WarrenBelz
Super User
Super User

Hi @nagestiada ,

The Search() function is not Delegable, however with 100 rows, you can ignore the warning for now. If you are only looking for matching text (not text inside the field), you can use StartsWith(), with the added advantage of everything showing when the box is empty and filtering as you type. Make the Default of the box "" (empty string) and put this

 

Filter(
   'PurchaseList',
   StartsWith(EID,TextInput1.Text) &&
   StartsWith(PID,TextInput1.Text) &&
   StartsWith(PList1,TextInput1.Text)
)

 

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

The ID is in text column in sharepoint, yeah I already made it to 2000 but still encountering same error.

Use the approach by @WarrenBelz 

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

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.

mdevaney
Super User
Super User

@nagestiada 
I wrote an article about the 3 ways you can use the SEARCH function without a delegation warning:
https://matthewdevaney.com/power-apps-search-function-delegation-warning-workarounds/


1. StartsWith Function
2. Search + Filter Functions

3. Dataverse For Teams IN Operator

 

 

aaa.gif

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,675)