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 warning on ...
Power Apps
Answered

Delegation warning on functions that are delegable to my Dataverse datasource

(0) ShareShare
ReportReport
Posted on by 19

Hi,

I'm really confused about a delegation issue I'm running into on one of my formulas.  My datasource is Dataverse.  My formula is below:

Sort(Filter('HPC Data', 'Sales Representative' = User().Email), 'HCP Name Address', Ascending)

According to Microsoft's documentation, both Sort and Filter are delegable. If I remove the Sort function the problem still remains.  If anyone could give some guidance I will greatly appreciate it!

Thanks!

Categories:
I have the same question (0)
  • Al_10 Profile Picture
    1,691 Super User 2024 Season 1 on at

    @alandilworth 

     

    With({wUser: User().Email},

    Sort(Filter('HPC Data', 'Sales Representative' = wUser), 'HCP Name Address', Ascending)

    )

  • alandilworth Profile Picture
    19 on at

    Thanks for the suggestion Alex. Unfortunately it is still not working. One thing I noticed is if I use the same function in a blank app I do not encounter this problem. I'm not sure what could be interacting with this in my production app since it is just a dropdown with this my formula in the items category. It does not interact with anything else

  • Al_10 Profile Picture
    1,691 Super User 2024 Season 1 on at

    @alandilworth 

    did testing on my end and cannot replicate the warning with Dataverse.

     

    may be you have a hidden control that is placed over or behind your dropdown and that control shows that warning?

  • alandilworth Profile Picture
    19 on at

    I kind of explained it wrong. It's not actually showing a warning. I'm testing for delegation issues where there are no warnings by setting the data row limit where delegation is not supported to 1

  • Al_10 Profile Picture
    1,691 Super User 2024 Season 1 on at

    @alandilworth 

     

    i think now i understand.

    by limiting to 1 you get only 1 record back even if there are more? and you want to see if that case happens?

     

    CountRows(Sort(Filter('HPC Data', 'Sales Representative' = User().Email), 'HCP Name Address', Ascending))

     

    CountRows will return the correct number of records that should be returned when unlimited.

    so building a condition comparing that number with the number of actual rows may help

  • alandilworth Profile Picture
    19 on at

    It did return the correct number of rows, but I have another update. On my blank app with nothing but a dropdown with my function populating the items category, it started encountering the same problem after closing and reopening the app. I've been playing around with it and it will work for a while then stop

  • Verified answer
    alandilworth Profile Picture
    19 on at

    So I found the problem. It ended up being a dropdown/combobox issue. When I placed the same function in a gallery I no longer had the delegation issue. Very odd

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,045

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 592

Last 30 days Overall leaderboard