cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Boneckrh19
Kudo Kingpin
Kudo Kingpin

Sudden delegation warning, SortByColumns and Sort

My app did not have these delegation warnings for the versions using powerapps release 3.20092.39, but today the powerapps release is 3.20093.27 and it seems to have caused a new problem. This is happening in multiple applications.
On the code below I get:
"Delegation warning. The "SortByColumns" part of this formula might not work correctly on large data sets as its direct inner function blocks the delegation of all upper-level functions."

 

 

SortByColumns(
Distinct(
    If(
        !IsBlank(_filterUser) && !IsBlank(_filterApp) && !IsBlank(_filterLocation) && !IsBlank(_filterArea),
        Blank(),

        !IsBlank(_filterApp) && !IsBlank(_filterLocation) && !IsBlank(_filterArea),
        Filter(
            IC_UserSecurities,
            'Security App'.'App Name' = _filterApp,
            'Security Location'.'Location Name' = _filterLocation,
            'Security Area'.'Area Name' = _filterArea
        ),

        !IsBlank(_filterLocation) && !IsBlank(_filterArea),
        Filter(
            IC_UserSecurities,
            'Security Location'.'Location Name' = _filterLocation,
            'Security Area'.'Area Name' = _filterArea
        ),

        !IsBlank(_filterApp),
        Filter(
            IC_UserSecurities,
            'Security App'.'App Name' = _filterApp
        ),

        //default
        IC_UserSecurities 
    ), 
    'Security User'.'Full Name'
), "Result", Ascending)

 

This code is in a combobox Items property. It worked perfectly yesterday.

1 REPLY 1
Boneckrh19
Kudo Kingpin
Kudo Kingpin

It appears that powerapps may be having an issue actually detecting all delegation issues in complex formulas. I would recommend going into settings and temporarily changing your delegation limit to 1, so that you can see everywhere that will be a problem regardless of how many records you have in the table or where the warnings say the delegation problems are.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,418)