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
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,429)