cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Delegation errors on collections?!

Hi there,

 

So in order to bypass delegation, I have used a collections to house my lookup lists and datasets. However, I just looked on the monitor, and I'm getting a massive amount of delegation warnings where I have used that collected, all with the same message:

 

"This function can be delegated but the selection formula used prevented the datasource from processing the query.It might not work correctly on large data sets and an incorrect result might be returned.The data row limit for non-delegable queries defined in the app settings is 2000."
 
I was under the impression this wouldn't occur when using un-delegable formulas against a collection. As far as im aware, I'm not even interacting with the raw datasource, only the collection! Any help?
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper III
Helper III

Re: Delegation errors on collections?!

I have resolved this. I was saving my lists to variables rather than collection, so the function wasn't being delegated. I change "SET" to "CLEARCOLLECT" and this has solved the problem. My mistake.

View solution in original post

4 REPLIES 4
Highlighted
Super User III
Super User III

Re: Delegation errors on collections?!

Can you show the code that is giving the error?

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

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.

Highlighted
Helper III
Helper III

Re: Delegation errors on collections?!

Both

 

If(
    CountRows(wlmSupervisors) = 1, 40,
    CountRows(wlmSupervisors) = 2, 70,
    CountRows(wlmSupervisors) > 12, 349,
    CountRows(wlmSupervisors) * 32 + 10)

 and

LookUp(supportRoles,Role='Role Dd_1'.SelectedText.Value,Max_x0020_Hours) * staffSelected.FTE

 

give me the error about being non delegable despite them operating on collections.

Highlighted
Helper III
Helper III

Re: Delegation errors on collections?!

Can anyone help with this? Its becoming quite a problem

Highlighted
Helper III
Helper III

Re: Delegation errors on collections?!

I have resolved this. I was saving my lists to variables rather than collection, so the function wasn't being delegated. I change "SET" to "CLEARCOLLECT" and this has solved the problem. My mistake.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,470)