DEV Community

Cover image for Power Automate Flow Failed: Read Run History and Fix Common Errors
epifive
epifive

Posted on Originally published at epifive.com

Power Automate Flow Failed: Read Run History and Fix Common Errors

When a Power Automate flow fails, open the flow in My flows, select the failed run in the 28-day run history, and look for the step with a red exclamation icon. The error message and code on that step tell you which of four things went wrong: the connection, the action configuration, a throttle or limit, or a temporary service problem. This guide shows the routine, the common error codes and the fixes, and what to do when the failure only happens for some users.

Who this is for and what you will have

This is for flow owners and admins who get a failure email or notice a red status in run history and need a repeatable way to diagnose it. You will leave with a step-by-step triage routine, a table that maps error codes to fixes, and a short list of settings that prevent repeat failures.

Step 1: Find the failed run

  1. Sign in to the Power Automate portal.
  2. Select My flows and open the flow that failed.
  3. In the 28-day run history section, select the date of the failed run.
  4. In the run details, find the step that shows a red exclamation icon, and open it.
  5. Read the error message. In the right pane, Microsoft shows the details of the error and a How to fix section when it can offer one.

The default run history columns are Start, Duration and Status. For flows that run often, select Edit columns on the flow details page and add trigger-output columns such as hasAttachments, so you can spot the run you need without opening each one. You can set the same columns for the All runs view.

Run retention in storage is 30 days from a run's start time according to Microsoft's limits page, and the portal labels the list as the 28-day run history. Diagnose failures promptly.

Repair tips emails

Power Automate emails repair tips to flow owners whenever a cloud flow fails. The email shows when the flow first failed, what happened, how to fix it and troubleshooting details, including how many times it failed and a link to retry with the same input data. A common example is a flow that gets a user's manager when no manager is set in Microsoft Entra ID. You can turn the emails off from the flow's properties menu.

Troubleshoot in Copilot

When the new designer is enabled, Power Automate can summarise an error in plain language and sometimes propose a fix while you test a flow or review run history. Microsoft notes it might not work in every scenario, so verify any suggested change.

Step 2: Match the error to its category

Message or code Likely cause First action
Unauthorized, 401, 403 Connection expired or lacks permission Fix the connection, then Resubmit
Bad request, Not found, 400, 404 An action setting is wrong, or the target is missing Edit the action, save, Resubmit
429 Too many requests Throttling by the connector or service Add delays, reduce calls, spread runs
500, 502 Temporary service problem Resubmit; if it persists, check the target service
Request Entity too large Teams message above about 28 KB Shorten the message
504 Long-running request timed out Simplify the action; repeated 504s can lead to throttling

Authentication failures: 401 and 403

Authentication errors say Unauthorized or show 401 or 403. Microsoft's repair routine:

  1. In the right pane under How to fix, select View Connections.
  2. Scroll to the connection that shows the Unauthorized message.
  3. Select Fix connection and sign in as instructed.
  4. Go back to the failed run and select Resubmit.

Connections go stale when a password changes, a token is revoked, or an account loses access to the resource. For SharePoint and Excel actions, also check that the connection account still has permission on the site or file. The Excel Online (Business) connector, for example, needs write access for every action, otherwise Graph returns 403 Forbidden.

Action configuration: 400 and 404

Bad request or Not found errors, or codes 400 and 404, mean a setting does not match reality: a deleted file, a renamed list, a table name that changed, a dynamic value that was empty. Microsoft's steps are to select Edit, correct the action in the flow definition, save, and select Resubmit to run again with the updated configuration. The error details usually name the field.

For guest users in another tenant, the Excel connector can return 404 when they cannot access the document.

Transient errors: 500 and 502

Codes 500 and 502 are described as temporary. Select Resubmit. If they persist, check whether the target service is degraded. For the Excel connector, 502 BadGateway is also listed when a spreadsheet is in read-only mode.

Step 3: Deal with throttling and limits

A 429 means too many requests. The Excel Online (Business) connector documents that throttling can come from Graph limits, SharePoint throttling policy, a full operation queue, requests pending too long, or too many consecutive failures in a workbook session, and it lists 100 calls per connection per 60 seconds. Microsoft suggests adding explicit delays around the connector action. Other practical steps:

  • Avoid several flows writing to the same workbook at the same time.
  • Replace per-row actions in a loop with a single action where the connector allows it.
  • Lower concurrency on the trigger if it is on. Concurrency control is off by default; when on, it defaults to 25 concurrent runs and can be set from 1 to 100. Turning it on cannot be undone without deleting and re-adding the trigger.

Retries count as actions. Microsoft documents default retry policies: for the Low profile, up to two retries at exponentially increasing intervals, and for the Medium and High profiles up to 12 retries at exponentially increasing intervals reaching roughly an hour on the last retry. A flow in a retry storm uses daily capacity quickly.

Daily limits

Power Platform request limits apply per licence: 6,000 per day for Free and Microsoft 365, 40,000 for Premium and 250,000 for a flow with a Process licence, with higher transition-period values per cloud flow at the time of writing. A flow that slows because it exceeds its limit resumes when the 24-hour sliding window falls. See Power Automate licensing explained for how to give a busy flow its own capacity.

Flows turned off automatically

Microsoft's limits documentation lists three cases: a cloud flow whose trigger or actions fail continuously is turned off after 14 days, a flow that is consistently throttled is turned off after 14 days, and a flow not triggered in 90 days might be turned off unless it belongs to a premium-licensed owner or has capacity licences assigned. Owners and co-owners are notified 30 days before the inactivity suspension. After you fix the cause, turn the flow back on.

Step 4: Check Conditional Access when embedded flows fail

If a flow works in the Power Automate portal but fails with an authentication error when users run it from SharePoint, Teams or Excel, the cause may be a Conditional Access mismatch. When a flow is embedded in another Microsoft 365 app, the host app does a token exchange with Microsoft Flow Service, and the exchange fails if policy requirements differ for the host and for Power Automate.

Microsoft's resolution:

  1. In the Microsoft Entra admin center, go to Protection, then Conditional Access, then Policies.
  2. Change the policy target to the Office 365 app or All cloud apps, so requirements are consistent.
  3. If you must target individual apps, include Microsoft Flow Service (application ID 7df0a125-d3be-4c96-aa54-591f83ff541c) alongside SharePoint, Teams and Excel with matching requirements.
  4. If a policy uses Terms of Use, exclude service accounts and dedicated flow connection owners, because flow connections refresh tokens silently and cannot accept Terms of Use interactively.
  5. Have affected users sign out and sign in again.

If sign-in errors show AADSTS codes, see AADSTS53003: blocked by Conditional Access.

Step 5: Fix errors specific to common connectors

  • Teams. Posting fails with Request Entity too large when a message exceeds about 28 KB. Flow bot posting is not supported in Government Cloud tenants and fails with BotNotInConversationRoster; use the User option. Posting to private channels is not supported.
  • Outlook. Trigger skips emails larger than the Exchange limit or 50 MB. If many emails with attachments arrive together the trigger can time out; set Include Attachments to No and fetch attachments with Get Attachment (V2).
  • SharePoint. Uploads and downloads of files larger than 100 MB can fail from buffer limits.
  • Forms. The CannotDisableTriggerConcurrency error appears after concurrency control is switched on and off.
  • AI Builder. EntitlementNotAvailable, NoCapacity or QuotaExceeded errors mean no credits are allocated or available to the environment.

Step 6: Prevent repeat failures

  1. Add error handling with Scope actions and Run after settings, as described in Power Automate error handling with try-catch scopes.
  2. Use a shared or service account for connections that production flows depend on, and keep at least one co-owner.
  3. Keep repair tips emails on, and route them to a monitored mailbox.
  4. Name actions clearly, because action names show up in run history and in expressions.
  5. Test with edge cases: empty values, long text, missing files.

Verification

After a fix, select Resubmit on the failed run or trigger a new one, and confirm the previously red step is green. Check the downstream result as well, such as the file in SharePoint or the message in Teams, not only the run status.

Closing checklist

  • You opened the failed run from the 28-day run history and found the red step.
  • You matched the code to a category: connection, configuration, throttling or transient.
  • You applied the fix, saved and used Resubmit.
  • You checked Conditional Access if the failure is specific to embedded flows.
  • You reviewed whether the flow is at risk of automatic turn-off.
  • You added error handling and a co-owner.

See also

References


This guide was researched and drafted with AI assistance and checked against the vendor documentation listed in its References. Read the maintained version and related guides on EpiFive.

Top comments (0)