---
title: How does Nodinite detect when a Dynamics 365 workflow has failed?
description: How does Nodinite detect when a Dynamics 365 workflow has failed? Learn about status monitoring, execution history analysis, and performance monitoring for workflow failure detection.
---

# How does Nodinite detect when a Dynamics 365 workflow has failed?

Nodinite tracks Dynamics workflow state via **3 detection mechanisms:**

1. **Workflow status monitoring** - Uses polling of the [Dynamics 365][] [Web API][] every 60 seconds, retrieves workflow metadata including status: Running (workflow active and enabled), Stopped (workflow disabled or suspended), Draft (workflow not published), Suspended (workflow paused due to error or manual intervention). Alert triggers on workflow failure: Workflow stops unexpectedly (Running → Stopped without scheduled maintenance window), workflow suspended (requires manual intervention).

2. **Workflow execution history analysis** - Polls workflow execution logs (last 100 executions per workflow), analyzes execution status: Succeeded, Failed, Canceled, In Progress. Alert triggers when: Error rate exceeds threshold (>5% of executions failed in last hour), consecutive execution failures (3+ errors in row), execution stuck (In Progress >10 minutes for workflow with 45-sec baseline).

3. **Workflow performance monitoring** - Tracks execution duration trends (12-month history), compares current execution time against baseline. Alert triggers when: Execution duration exceeds threshold (>2× baseline: 90 seconds for 45-sec baseline), execution duration increasing (8%+ weekly increase, statistically significant trend, projects timeout risk), execution timeout (>5 minutes = Dynamics workflow timeout limit).

## Example Alert

"Workflow: LoanApplicationProcessing | Status: Running | Last Execution: Failed | Error: System.TimeoutException: The operation has timed out | Executions last hour: 6 Succeeded, 4 Failed (40% error rate exceeds 5% threshold) | Execution duration: 4.8 min (baseline 45 sec, +640% increase) | Action: Investigate performance degradation, restart workflow via [Remote Actions][]"  

## :fa-hand-point-right: Next Steps

* :fa-life-ring: [Troubleshooting Overview][]  

## :fa-link-horizontal: Related Topics

* :fa-circle-dot: [Dynamics 365][]  
* :fa-chart-line: [Monitoring Dynamics 365][]  

Browse more Microsoft Dynamics 365 FAQ topics in the [Troubleshooting Overview][].

[Dynamics 365]:{ndr}/Logging%20and%20Monitoring/Microsoft%20Dynamics%20365/Overview.md
[Monitoring Dynamics 365]:{ndr}/Logging%20and%20Monitoring/Microsoft%20Dynamics%20365/Features/Monitoring%20Dynamics%20365.md
[Remote Actions]:{ndr}/Getting%20Started/3.%20Monitor/Remote%20Actions.md
[Troubleshooting Overview]:{ndr}/Logging%20and%20Monitoring/Microsoft%20Dynamics%20365/Troubleshooting/Overview.md
[Web API]:{ndr}/Core%20Services/Web%20API/Overview.md