Skip to main content

Notifications

Community site session details

Community site session details

Session Id : jzEepWfadO0wUYFmXxSF1Z
Power Apps - Error Handling
Suggested answer

How to solve Delegation errors in PowerApps?

Like (0) ShareShare
ReportReport
Posted on 4 Apr 2025 09:20:32 by 8

I am dealing with a large set of data and currently using in,&& , || and <> inside my filter functions.

I currently set my Data row limit to 2000, which is a temporary fix.

Is there any solution to solve these issues?

i have given an example formula below

 

SortByColumns(
    Filter(
        'DDM Workorders Internal KPI Tracking',
        ('Internal Status'.Value in ["Assigned", "WIP", "Sent for QC", "Hold", "Internal Rework","Internal Completed"]) &&
        Office365Users.MyProfile().Mail = Executer.Email
    ),
    "ID",
    SortOrder.Descending
)
 

In this example im getting issue in "in" part.

  • vipuljain03 Profile Picture
    417 on 05 Apr 2025 at 16:42:43
    How to solve Delegation errors in PowerApps?
    For Delegation => Replace the "in" with || for individual checks.
     
    Additionally, try to reduce the number of columns retrieved by using ShowColumns() or AddColumns() to reduce the size of data being handled and this will also potentially improve app performance.
  • ronaldwalcott Profile Picture
    2,427 on 04 Apr 2025 at 20:07:38
    How to solve Delegation errors in PowerApps?
    Your best solution is to consider a redesign. If you provide some more information on your application someone here will provide some suggestions.
  • Suggested answer
    tamint Profile Picture
    2 on 04 Apr 2025 at 14:47:09
    How to solve Delegation errors in PowerApps?
  • Suggested answer
    MS.Ragavendar Profile Picture
    1,232 on 04 Apr 2025 at 13:04:50
    How to solve Delegation errors in PowerApps?
     
    PowerApps has delegation limits when working with large data sources like SharePoint, SQL, and Dataverse. Your current data row limit of 2000 is a temporary fix but does not solve the issue for large datasets.
     
    Power Fx
    SortByColumns(
        Filter(
            'DDM Workorders Internal KPI Tracking',
            ('Internal Status'.Value = "Assigned" ||
             'Internal Status'.Value = "WIP" ||
             'Internal Status'.Value = "Sent for QC" ||
             'Internal Status'.Value = "Hold" ||
             'Internal Status'.Value = "Internal Rework" ||
             'Internal Status'.Value = "Internal Completed") &&
            Office365Users.MyProfile().Mail = Executer.Email
        ),
        "ID",
        SortOrder.Descending
    )
    
     
    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item
  • DJ_Jamba Profile Picture
    2,774 Super User 2025 Season 1 on 04 Apr 2025 at 10:23:54
    How to solve Delegation errors in PowerApps?
    Try something like this:
     
    With(
        {
            userEmail: Office365Users.MyProfileV2().mail,
            statusVals: ["Assigned","WIP","Sent for QC","Hold","Internal Rework","Internal Completed"]
        },
        With(
            {
                qFilter: Filter(
                    'DDM Workorders Internal KPI Tracking',
                    Executer.Email = userEmail
                )
            },
            SortByColumns(
                Filter(
                    qFilter,
                    'Internal Status'.Value in statusVals
                ),
                "ID",
                SortOrder.Descending
            )
        )
    )
     
     
    OR
     
    With(
        {
            userEmail: Office365Users.MyProfileV2().mail
        },
        SortByColumns(
            Filter(
                'DDM Workorders Internal KPI Tracking',
                And(
                    Executer.Email = userEmail,
                    Or(
                        'Internal Status'.Value = "Assigned",
                        'Internal Status'.Value = "WIP",
                        'Internal Status'.Value = "Sent for QC",
                        'Internal Status'.Value = "Hold",
                        'Internal Status'.Value = "Internal Rework",
                        'Internal Status'.Value = "Internal Completed"
                    )
                )
            ),
            "ID",
            SortOrder.Descending
        )
    )
     
     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,518 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,756 Most Valuable Professional

Leaderboard

Featured topics

Loading started