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
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (2,223)