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 / Delegation errors on c...
Power Apps
Answered

Delegation errors on collections?!

(0) ShareShare
ReportReport
Posted on by 364

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?
Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,923 on at

    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.

  • EpicTriffid Profile Picture
    364 on at

    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.

  • EpicTriffid Profile Picture
    364 on at

    Can anyone help with this? Its becoming quite a problem

  • Verified answer
    EpicTriffid Profile Picture
    364 on at

    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.

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard