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 Platform Community / Forums / Power Apps / How to resolve delegat...
Power Apps
Answered

How to resolve delegation warning message on PowerApps formula?

(0) ShareShare
ReportReport
Posted on by 60

Hello,

 

I have delegation messages even after changing the limit from 500 to 2000 in experimental features, can you please help me with how can I avoid it ?

First Warning: Filter('dataSource', 'Created On' >= DateAdd(Today(), -3))

Error1.png

Second Warning:Filter('dataSource','Associated Column'.cr9fd_name = lbl.Text )

Error2.png

Third Warning: LookUp('dataSource',cr9fd_fullname = User().FullName).Project

Error3.png

Thank you for your time in advance! Best Regards,

Categories:
I have the same question (0)
  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @dips23 ,

    Could you tell me what’s your data source?

    Firstly, non-delegable limits is not the reason why delegation warning appears. So, you can’t resolve it by changing non-delegable limits.

    Delegation warning means that there’s some data that can’t be delegated to data source.

    Secondly, as how to resolve the delegation warning, if your data source is non-delegable, it can’t be resolved directly.If the amount of your data source records is not more than 2000, please consider save your data source records into a Collection, then use the Collection as data source within your app instead of your original data source.

    If your data source is delegatble, you could transfrom your formula to resolve it.

    For more details about delegation, you could refer this:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/delegation-overview

     

     

     

    Best regards,

    Community Support Team _ Phoebe Liu

  • dips23 Profile Picture
    60 on at

    Thank you for your suggestions!

     

    Data are coming from the CDS Entities + Office 365 Users connector and they are less than 2000:

     

    I have tried earlier to search on "How to use 'Collect" on CDS datasource" or any data source, but most of the article returns defining and generating data runtime, while I need to run it against existing datasource.

     

    Can you please share in that case, how to use "Collect" function to fetch data from existing datasource ? Exact syntax would be really helpful.

     

    Thank you again!

     

    Best Regards,

     

     

  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @dips23 ,

    Try this formula to save the data to a collection:

    ClearCollect(collectionname,entityname)

    Then, use the collection as the data source.

     

    Best regards,

    Community Support Team _ Phoebe Liu

     

  • dips23 Profile Picture
    60 on at

    Hello,

     

    I have tried both the following ways, It returned me an error saying function ClearCollect has some invalid arguments:

     

    ClearCollect('cdsEntity',"Items");

    ClearCollect("Items",'cdsEntity');

     

    Any clue ? 

     

    Best Regards,

     

  • Verified answer
    dips23 Profile Picture
    60 on at

    I could figure it out using this article in the following ways:

     

    OnStart/OnVisible event of the screen, use collect functions to fetch records as a variable with the following syntax:

     

    Collect(YourNewCollectionNameWithoutQuotes,DataSourceName)

     

    Then, Use "YourNewCollectionNameWithoutQuotes" as datasource to operate on PowerApps control which would help to remove the delegation error message.

     

    Thank you for addressing the root cause 🙂

     

    Best Regards,

     

  • mdevaney Profile Picture
    29,991 Moderator on at

    @dips23 
    A Power Automate flow connected to Power Apps can be used to search a SharePoint list with no delegation warnings:
    https://www.matthewdevaney.com/power-apps-search-a-sharepoint-list-no-delegation-warning/


    There are also 3 more delegation workarounds for the Power Apps Search function:

     

    1. StartsWith Function
    2. Search + Filter Function

    3. Dataverse For Teams IN Operator

    Check out this article for EXAMPLES:
    https://matthewdevaney.com/power-apps-search-function-delegation-warning-workarounds

     

     

    aaa.gif

     

     

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Brendan_Val Profile Picture
    15 on at

    Hi, 

     

    I tried doing the collection and changing my data row limit to 2000. 

    But if I have more than 2000 records and I am using the Filter function, it show's that there are no delegation issues but it doesn't show what I need still. 

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard