---
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][]"  

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-life-ring" aria-hidden="true"></i> [Troubleshooting Overview][]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-circle-dot" aria-hidden="true"></i> [Dynamics 365][]  
* <i class="fal fa-chart-line" aria-hidden="true"></i> [Monitoring Dynamics 365][]  

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

[Dynamics 365]:https://docs.nodinite.com/logging-and-monitoring/microsoft-dynamics-365/overview/
[Monitoring Dynamics 365]:https://docs.nodinite.com/logging-and-monitoring/microsoft-dynamics-365/features/monitoring-dynamics-365/
[Remote Actions]:https://docs.nodinite.com/getting-started/monitor/remote-actions/
[Troubleshooting Overview]:https://docs.nodinite.com/logging-and-monitoring/microsoft-dynamics-365/troubleshooting/overview/
[Web API]:https://docs.nodinite.com/core-services/web-api/overview/