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!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,980)