cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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

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

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

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

Can anyone help with this? Its becoming quite a problem

Highlighted

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!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (11,643)