web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Delegation Warning upo...
Power Apps
Unanswered

Delegation Warning upon Search

(1) ShareShare
ReportReport
Posted on by

Hi Community,

Can you please suggest a workaround for this "Delegation Warning" pop up?

Currently, the rows are 3 but i expect that it will grow but be under 5000 rows. How should i proceed?

 

GauravG_1-1601544441380.png

 

Categories:
I have the same question (0)
  • Verified answer
    iAm_ManCat Profile Picture
    18,228 Most Valuable Professional on at

    Hi!

     

    As a start, change the setting in your App to force delegation to 1 - this will immediately show you if your query is delegable, as it will only show one item if it is Not delegable.

    image.png

    Now we need to look at your formula to see where we can optimise it to be delegated to the data source.

     

    I'm guessing you are using SharePoint and Search together, and Search is not a delegable function for SharePoint.

     

    If you could please paste your 'Items' code from your gallery here I will try help to alter it for you 🙂

     

    Cheers,

    Sancho

  • Community Power Platform Member Profile Picture
    on at

    Thanks @iAm_ManCat 

    The formula in Items for Gallery is Search(BRD,TextInput1.Text,"Title","Scope","BusinessPurpose")

    This formula is working currently but only with text based columns.

    I just posted another question to have choice based columns in this search as well like "Function".

     

  • iAm_ManCat Profile Picture
    18,228 Most Valuable Professional on at

    Ok, yes so Search isn't delegable with SharePoint, so once you reach over 2000 rows it will only show 2000 rows and then ignore the rest of the data.  Rows 2001 to 5000+ will not be available if you use Search with SharePoint.

     

    Your current formula,

    Search(BRD,TextInput1.Text,"Title","Scope","BusinessPurpose")

     

    Needs to become This (and you won't be able to do partial search, only where it starts with something) :

     

    Filter(
     BRD,
     //if nothing is typed in the search then don't filter,
     Len(TextInput1.Text)=0
     //otherwise filter for items starting with:
     ||
     (
     StartsWith(Title, TextInput1.Text)
     ||
     StartsWith(Scope, TextInput1.Text)
     ||
     StartsWith(BusinessPurpose, TextInput1.Text)
     )
    )

     

     

    Cheers,

    Sancho

  • Community Power Platform Member Profile Picture
    on at

    @iAm_ManCat Thanks again.

    I tried and it is working. However, it would only search when my search letters match with the letters used in column values for rows being filtered. This seem very limiting as it i would want the search to work as it was working earlier using Search(BRD,TextInput1.Text,"Title","Scope","BusinessPurpose")

    Also, the delegation warning still throws up- how to get rid of that?

  • iAm_ManCat Profile Picture
    18,228 Most Valuable Professional on at

    Hi,

     

    It's not currently possible to easily do a search like you were doing with the number of records you will have when using SharePoint.

    You could create a local collection that has thousands of records by specifying ID 0-2000, 2000-4000, etc. however this will increase the time your app needs to loads so I donot advise it.

     

    Could you please take a screenshot of the delegation warning and the code it applies to? Filter is a delegable function so it should not be showing that unless there is something in there that's not delegable.

     

    Cheers,

    Sancho

  • Community Power Platform Member Profile Picture
    on at

    The delegation warning is not because of the function we used.

    It was coming from before- the screenshot is below

    GauravG_0-1601550230324.png

    Vow, your like carried a weight...lol- this is exciting and funny 🙂 Thanks

     

  • iAm_ManCat Profile Picture
    18,228 Most Valuable Professional on at

    Ok, so what type of column is BusinessPurpose?

  • Community Power Platform Member Profile Picture
    on at

    It's multiple lines of text

  • iAm_ManCat Profile Picture
    18,228 Most Valuable Professional on at

    Hmmm, does it have to be MLOT? will business purpose be greater than 255 characters? MLOT fields won't filter well either for delegation 😞

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard