Power Apps Delegation Warning: Why It Happens and How to Fix It Properly

Stop Missing Records and Fix Delegation Issues the Right Way 

The Warning Every Power Apps Developer Encounters. If you’ve built even a moderately complex app in Power Apps, you’ve seen this message: “Delegation warning. The highlighted part of this formula may not work correctly on large data sets.” Most developers ignore it at first. The app works. Data shows up. Testing looks fine. Until one day: 

  • Records are missing 
  • Filters don’t behave correctly 
  • Production users report inconsistent results 

This blog explains exactly why the Power Apps delegation warning happens, what it actually means, and how to fix it properly—not just silence it. 

 

What Is a Power Apps Delegation Warning?

Power Apps delegation warning means your formula cannot be fully processed by the data source, so Power Apps retrieves only a limited number of records locally and applies logic on that subset. 

By default: 

  • Power Apps fetches 500 records
  • Can be increased to 2,000 (maximum)
  • Anything beyond that is ignored

This leads to incomplete, inaccurate data.

 

Why Power App Delegation Exists

Power Apps is designed to work with large data sources like: 

  • SharePoint 
  • Dataverse 
  • SQL Server 
  • Excel 
  • Azure SQL 

To stay performant, Power Apps: 

  • Pushes operations (filtering, sorting, searching) to the server when possible
  • Falls back to client-side processing when delegation isn’t supported

The power app delegation warning appears when Power Apps cannot delegate your formula to the data source.

 

Why Ignoring Power App Delegation Warnings Is Dangerous 

Ignoring Power App delegation warnings causes silent data loss, not obvious errors. 

Common symptoms: 

  • Only recent records appear 
  • Old records never show 
  • Filters behave inconsistently 
  • App works in testing but fails in production 

If your data source grows beyond 2,000 records, your app is already broken. 

 

Common Causes of Power Apps Delegation Warnings 

  1. Using Non-Delegable Functions

Some functions cannot be delegated to most data sources. Common examples: 

  • Search() (for many sources) 
  • CountIf() 
  • Left()Mid()Right() 
  • Len() 
  • If() inside filters 
  • In operator 

Example (problematic): Filter(Employees, “John” in Name)

This forces Power Apps to process data locally. 

 

  1. Filtering on Calculated or Text Columns

Filtering on: 

  • Calculated fields 
  • Complex text operations 
  • Concatenated values 

often breaks delegation. 

Example: Filter(Orders, TotalAmount > 1000)
 

If TotalAmount is a calculated column, delegation fails. 

 

  1. Using SharePoint as a Large Database

SharePoint delegation limits are stricter than Dataverse or SQL. Common non-delegable operations in SharePoint: 

  • StartsWith() on certain column types 
  • Complex filters 
  • Sorting on calculated columns 

SharePoint works best for small to medium datasets, not enterprise-scale filtering. 

 

  1. Misusing the Search Function

Search() is one of the most misused functions. 

Example: Search(Employees, TextInput1.Text, “Name”)
 For large datasets, this almost always triggers delegation warnings. 

 

How to Fix Power Apps Delegation Warnings 

Fix 1: Replace Non-Delegable Functions with Delegable Ones 

Instead of: Search(Employees, TextInput1.Text, “Name”)
 Use: Filter(Employees, StartsWith(Name, TextInput1.Text))
 StartsWith() is delegable in many data sources like Dataverse and SQL. 

 

Fix 2: Filter Data at the Source, Not in Power Apps 

Move logic closer to the database. Best practices: 

  • Use views (Dataverse) 
  • Use SQL views or stored procedures 
  • Pre-filter SharePoint lists using indexed columns 

Power Apps should consume already-optimized datasets.

 

Fix 3: Avoid Calculated Columns for Filters 

If you need to filter: 

  • Create a physical column 
  • Store computed values explicitly 
  • Index that column (SharePoint / Dataverse) 

Never rely on calculated fields for filtering large datasets. 

 

Fix 4: Use Delegation-Friendly Data Sources 

If your app handles thousands of records: 

  • Prefer Dataverse or SQL 
  • Avoid SharePoint for complex queries 
  • Avoid Excel for anything beyond simple use 

Data source choice directly impacts delegation behavior. 

 

Fix 5: Use Collections Carefully (Last Resort) 

Collections can suppress warnings—but do not solve the problem.

Example: ClearCollect(colData, Employees)
 

This still respects delegation limits. Collections are useful only when: 

  • Dataset is small 
  • Data is intentionally limited 
  • Use case is offline or temporary 

Never use collections to “fix” delegation issues in large apps. 

 

How to Check What Is Delegable 

Power Apps provides delegation indicators: 

  • Blue underline → delegable 
  • Blue double underline → partially delegable 
  • Warning icon → not delegable 

You can also: 

  • Hover over the warning 
  • Check Microsoft delegation documentation per connector 
  • Test with datasets > 2,000 records 

 

When Power Apps Is the Wrong Tool 

This matters for trust. If your app requires: 

  • Complex joins 
  • Heavy aggregations 
  • Large-scale reporting 
  • Advanced search logic 

Then Power Apps should be: 

  • A frontend only 
  • Backed by SQL, APIs, or Dataverse logic 

Forcing Power Apps to do backend work always leads to delegation issues. 

 

Best Practices to Avoid Power App Delegation Warnings from Day One 

  • Design data models before UI 
  • Choose the right data source early 
  • Keep filters simple and delegable 
  • Push logic to the backend 
  • Test with real data volumes 
  • Never ignore delegation warnings 

Delegation is not a bug. It’s a design constraint.

 

Final Thoughts: Delegation Warnings Are Design Feedback 

Power Apps delegation warnings are Power Apps telling you: “This app will not scale the way you’ve built it.” If you listen early, fixing them is easy. If you ignore them, production failures are guaranteed. Treat delegation warnings as architecture signals, not UI noise. 

Contact us 

 

Related Blogs

Power Apps: Transforming Business Operations with Low-Code Solutions

How GitHub Copilot Writes Code With You, Not For You

8 Power Apps Use Cases for Small & Mid-Size Businesses (2025 Guide)

 

 

Azure App Service Keeps Restarting: Common Causes and How to Fix Them

A Step-by-Step Debugging Guide for Developers 

When Your App Randomly Goes Down. Few things cause more panic than this scenario: 

  • Your app works locally 
  • Deployment succeeds 
  • Suddenly the app goes down 
  • Logs show repeated restarts 
  • No clear error message 

You Google one thing: “Azure App Service keeps restarting” 

This blog explains why Azure App Service restarts happen, how to identify the exact root cause, and how to fix it permanently—not just restart the service and hope. 

 

What Does “Azure App Service Keeps Restarting” Mean? 

When an Azure App Service keeps restarting, it means the application process is repeatedly crashing or failing health checks, causing the platform to automatically stop and restart the app to recover. This behavior usually indicates: 

  • Application-level crashes 
  • Resource exhaustion 
  • Startup failures 
  • Configuration errors 

Azure is not the problem—the app is. 

 

How Azure App Service Restart Cycles Work 

Azure App Service automatically restarts your app when: 

  • The process crashes 
  • Memory limits are exceeded 
  • Startup takes too long 
  • Health checks fail 
  • Configuration changes occur 

This creates a restart loop, often called a crash loop. Understanding why Azure App Service keeps restarting your app is the key to fixing it. 

 

Most Common Reasons Azure App Service Keeps Restarting 

  1. Application Startup Failure (Most Common Cause)

If your app fails during startup, Azure will keep restarting it. 

Typical causes: 

  • Missing environment variables 
  • Incorrect connection strings 
  • Unhandled exceptions in Startup.cs 
  • Invalid app settings 
  • Dependency failures 

How to detect it 

  • Check Application Logs 
  • Look for startup exceptions 
  • Review deployment logs 

Fix startup errors first—nothing else matters until the app boots successfully. 

 

  1. Out of Memory (OOM) Issues

Azure App Service has strict memory limits based on the plan. 

Symptoms: 

  • App restarts under load 
  • No clear error in UI 
  • Sudden crashes during traffic spikes 

Common reasons: 

  • Memory leaks 
  • Large object allocations 
  • Infinite loops 
  • Heavy caching in memory 

How to confirm 

  • Check Metrics → Memory Working Set 
  • Enable Application Insights 
  • Look for memory spikes before restarts 

Fix 

  • Optimize memory usage 
  • Increase App Service Plan tier 
  • Move caching to Redis or external stores 

 

  1. App Service Plan Resource Limits

If CPU or memory hits the plan limit: 

  • Azure throttles the app 
  • Then restarts it for stability 

This is common on: 

  • Free / Shared plans 
  • Under-provisioned Basic plans 

Fix 

  • Scale up the plan 
  • Monitor CPU and memory continuously 
  • Avoid running background jobs inside the app 

 

  1. Failing Health Checks

If health checks are enabled and your app doesn’t respond in time, Azure restarts it. 

Causes: 

  • Slow startup 
  • Blocking database calls 
  • Deadlocked threads 
  • Long-running initialization code 

Fix 

  • Keep health check endpoints lightweight 
  • Avoid database calls in health checks 
  • Increase health check timeout if needed 

 

  1. Deployment and Configuration Issues

Apps can restart continuously after deployment due to: 

  • Wrong runtime stack 
  • Incorrect startup command 
  • Mismatched framework version 
  • Missing files 

Where to check 

  • Configuration → General Settings 
  • Startup command 
  • Runtime version 

Always align your deployment config with how the app runs locally. 

 

  1. Application Crashes at Runtime

Unhandled exceptions during execution will crash the app. 

Examples: 

  • Null reference exceptions 
  • Unhandled promise rejections (Node.js) 
  • Thread crashes 
  • Infinite recursion 

How to detect 

  • Application Insights → Failures 
  • Log stream 
  • Crash stack traces 

Fix 

  • Add global exception handling 
  • Improve logging 
  • Fix code-level bugs 

 

How to Diagnose Azure App Service Restart Issues (Step-by-Step) 

Step 1: Check Log Stream Immediately 

  • Go to Monitoring → Log Stream 
  • Watch real-time logs during restart 
  • Look for fatal errors 

 

Step 2: Enable Application Insights 

  • View Exceptions 
  • Check Availability 
  • Correlate crashes with traffic or deployment 

 

Step 3: Use Kudu Console 

  • Access Advanced Tools → Kudu 
  • Check file system 
  • Review startup logs 
  • Validate deployment artifacts 

 

Step 4: Monitor Metrics 

Key metrics to watch: 

  • CPU Percentage 
  • Memory Working Set 
  • HTTP 5xx errors 
  • Restart Count 

Patterns here usually reveal the cause. 

 

How to Stop Azure App Service Restart Loops Permanently 

  • Fix startup logic before scaling 
  • Move heavy jobs out of the web app 
  • Optimize memory usage 
  • Use proper logging 
  • Scale plans based on real usage 
  • Test with production-like data 

Restarting the app manually is not a fix—it’s a delay. 

 

When Azure App Service Is Not the Right Choice 

If your app: 

  • Runs long background jobs 
  • Needs heavy processing 
  • Requires persistent connections 
  • Has unpredictable memory usage 

Then consider: 

  • Azure Functions 
  • Containers 
  • Kubernetes 
  • Background worker services 

Choosing the wrong hosting model causes endless restarts. 

 

Final Thoughts: Restarts Are a Signal, Not a Failure 

When Azure App Service keeps restarting, Azure is protecting your system—not breaking it. 

Treat restarts as: 

  • Architecture feedback 
  • Resource signals 
  • Stability warnings 

Fix the root cause once—and the problem disappears permanently. 

 

Related Blogs

Azure Kubernetes Service (AKS) for Scalable Applications

Azure Arc: Unlocking Hybrid and Multicloud Potential

Azure OpenAI Integration: Redefining AI-Driven Solutions

Azure Kubernetes Service (AKS) for Scalable Applications