cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
dips23
Level: Powered On

How to resolve delegation warning message on PowerApps formula?

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,

1 ACCEPTED SOLUTION

Accepted Solutions
dips23
Level: Powered On

Re: How to resolve delegation warning message on PowerApps formula?

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,

 

View solution in original post

5 REPLIES 5
Community Support Team
Community Support Team

Re: How to resolve delegation warning message on PowerApps formula?

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

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
dips23
Level: Powered On

Re: How to resolve delegation warning message on PowerApps formula?

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,

 

 

Community Support Team
Community Support Team

Re: How to resolve delegation warning message on PowerApps formula?

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

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
dips23
Level: Powered On

Re: How to resolve delegation warning message on PowerApps formula?

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,

 

dips23
Level: Powered On

Re: How to resolve delegation warning message on PowerApps formula?

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,

 

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,814)