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))
Second Warning:Filter('dataSource','Associated Column'.cr9fd_name = lbl.Text )
Third Warning: LookUp('dataSource',cr9fd_fullname = User().FullName).Project
Thank you for your time in advance! Best Regards,
Solved! Go to Solution.
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,
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
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,
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
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,
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,
User | Count |
---|---|
185 | |
122 | |
91 | |
47 | |
42 |
User | Count |
---|---|
271 | |
158 | |
130 | |
85 | |
78 |