Power automate run forensics
Diagnose Microsoft Power Automate cloud-flow incidents from run history, failed actions, trigger behavior, connection failures, missing runs, skipped branches, invalid expressions, throttling, retries, and action outputs before changing workflow code. Use with the power-automate CLI runs and run-detail commands for read-only evidence gathering.
ByWals.pro teamPower Platform consultancy @ Wals.pro- name:
- power-automate-run-forensics
- description:
- Diagnose Microsoft Power Automate cloud-flow incidents from run history, failed actions, trigger behavior, connection failures, missing runs, skipped branches, invalid expressions, throttling, retries, and action outputs before changing workflow code. Use with the power-automate CLI runs and run-detail commands for read-only evidence gathering.
Power Automate Run Forensics
Start read-only. Confirm what the flow actually did before changing JSON, connections, or production records.
Procedure
- Define boundary: profile, environment ID, flow ID/name, run ID(s), object IDs, and absolute time window.
- Run
power-automate status --profile <profile>andpower-automate runs --profile <profile>when API access is available. - If the flow or environment is unknown, run
power-automate environments,power-automate flows, orpower-automate runs --all-environments --top <n>to discover what the signed-in Azure user can see. - For a failed or suspicious run, inspect
power-automate run-detail. - Compare trigger data, action inputs, action outputs, branch status, skipped actions, and connector error codes.
- Read
references/errors-limits.mdfor Microsoft error/limit guidance. - Produce findings before proposing edits.
Output
Report:
- Boundary checked.
- Evidence reviewed.
- Findings with run IDs and timestamps.
- Impact.
- Root cause or strongest hypothesis.
- Fix target and validation plan.
If evidence is missing, name the missing source and why it matters.
Open this reference as its own page
Power Automate Errors, Runs, and Limits
Official references:
- Troubleshoot cloud-flow errors: https://learn.microsoft.com/en-us/power-automate/troubleshoot-flow-errors
- Cloud-flow error code reference: https://learn.microsoft.com/en-us/power-automate/error-reference
- Fix connection failures: https://learn.microsoft.com/en-us/power-automate/fix-connection-failures
- Limits and configuration: https://learn.microsoft.com/en-us/power-automate/limits-and-config
- Failure notifications: https://learn.microsoft.com/en-us/power-automate/understand-flow-failure-notifications
- Missing run history: https://learn.microsoft.com/en-us/troubleshoot/power-platform/power-automate/flow-run-issues/missing-runs-or-triggers-history-for-a-flow
- Flow runs API: https://learn.microsoft.com/en-us/rest/api/power-platform/powerautomate/flow-runs/list-flow-runs
Investigation Order
- Is the flow on, off, or suspended?
- Did the trigger fire?
- Is there a run in the expected time window?
- Which action first failed or skipped unexpectedly?
- Is the error design-time (
InvalidTemplate) or runtime (ExpressionEvaluationFailed, connector error, throttling, timeout)? - Did a connection fail or require re-authentication?
- Did limits, concurrency, retry settings, or run retention affect evidence?
Common Findings
- No run: trigger did not fire, flow is off/suspended, wrong environment, or run history aged out.
- Run-history 401
ClientScopeAuthorizationFailed: the signed-in account can see environment/flow metadata but cannot read run history for that flow. - Skipped branch:
runAfter, condition result, or trigger condition did not match. - Invalid template: expression/action JSON is malformed or references a missing action.
- Runtime expression failure: live data shape differs from expected shape.
- Connection failure: connector auth expired, permissions changed, DLP policy, or deleted connection.
- Attachment/file issue: content was encoded or shaped incorrectly for the target connector.
Operational Notes
- Default run history is limited; capture run evidence promptly.
- Turning off a cloud flow stops new runs; in-progress and pending runs may continue.
- Deleting a flow cancels in-progress/pending runs and is not a diagnostic action.
- Concurrency control and retry policies can change observed timing and order.
More in this playbook
Safe to turn on
Use this skill when an agent or person is about to create, change or enable an automation inside someone else's account or a shared environment: "create this workflow", "build it in the customer's account", "turn it on", "go live", "deploy this automation". Produces a proposal the human approves, an automation created in the off state, and a short list of what only the human can finish.
Workflow buildingMITn8n agents
Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain.* AI node — an AI Agent, LLM chain, Text Classifier, or Information Extractor — and whenever the user mentions AI agents, LLM with tools, tool calling, $fromAI, system prompts, agent memory, sessionId, structured/JSON output, output parser, RAG, vector store, a chat assistant/bot, or human-in-the-loop review. Covers Agent-vs-chain-vs-classifier choice, the model/memory/tools/outputParser slots, tool names/descriptions as prompt, structured output with autoFix, memory, RAG, human review, and chat topologies.
Workflow buildingMITn8n agents
Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain.* AI node — an AI Agent, LLM chain, Text Classifier, or Information Extractor — and whenever the user mentions AI agents, LLM with tools, tool calling, $fromAI, system prompts, agent memory, sessionId, structured/JSON output, output parser, RAG, vector store, a chat assistant/bot, or human-in-the-loop review. Covers Agent-vs-chain-vs-classifier choice, the model/memory/tools/outputParser slots, tool names/descriptions as prompt, structured output with autoFix, memory, RAG, human review, and chat topologies.


