---
title: Monitor and Resolve Orphaned DTA Service Instances in BizTalk with Nodinite
description: Proactively monitor and resolve Orphaned DTA Service Instances in BizTalk Server with Nodinite. Instantly receive alerts, take corrective actions, and ensure optimal database health and compliance.
---

# :fa-suitcase-medical: Orphaned DTA Service Instances

>[!INFO]
>Receive instant alerts and take action when the number of **Orphaned DTA Service Instances** exceeds your user-defined monitoring threshold. :fa-bolt:

When the `DTA Archive and Purge` SQL Server Agent job archives and deletes tracking data from the BizTalk Server Tracking database (BizTalkDTADb), orphaned rows can accumulate in the `dta_ServiceInstanceExceptions` table. This issue often occurs when a message instance is resumed and then fails again, generating multiple rows with the same `uidServiceInstanceId` and `uidActivityId`. If these orphaned DTA service instances are not removed by the `DTA Purge and Archive job`, the **BizTalkDTADb** database can grow excessively large.  
![Orphaned DTA service instances Resource in OK state in a Monitor View filtered on the Health Check category (7.12)][1]  
*The **Orphaned DTA service instances** [Resource][Resources] in a [Monitor View][Monitor Views]; it turns Warning or Error when orphaned instances exceed your thresholds.*  

:fa-folder: **Category Name** = "[Health Check][]"  
:fa-lightbulb-on: **Resource Name** = "Orphaned DTA Service Instances"  

## What's evaluated for Orphaned DTA Service Instances?

Nodinite evaluates the state of the [Resource][Resources] `Orphaned DTA Service Instances` based on your user-defined thresholds:

|State|Status|Description|:fa-bolt: Actions|  
|---|---|---|---|  
|🚫 <span title="Used to indicate an error/fatal condition">Unavailable</span>|**Resource not available**|Evaluation of the 'BizTalk Orphaned DTA Service Instances' is not possible due to network or security issues|Review [prerequisites][Prerequisites for BizTalk Monitoring Agent]|  
|❌ <span title="Number of instances are above configured threshold">Error</span>|**Too many instances exist**|Number of instances exceeds the configured threshold|:fa-circle-info: [Details](#fa-circle-info-details)|  
|⚠️ <span title="Used to indicate an unexpected but not invalid state"> Warning</span>|**Too many instances exist**|Number of instances exceeds the configured threshold|:fa-circle-info: [Details](#fa-circle-info-details)|  
|✅ <span title="Used to indicate normal operation">OK</span>|**Not too many instances exist**|Number of instances is below configured thresholds|:fa-circle-info: [Details](#fa-circle-info-details)|  

>[!TIP]
>You can reconfigure the **evaluated state** using the [Expected State][] feature on every [Resource][Resources] within :Nodinite:.

## :fa-bolt: What remote actions are available?

* :fa-circle-info: [Details](#fa-circle-info-details) – Show the number of instances and remove orphaned instances.
* :fa-edit: [Edit](#fa-edit-edit-thresholds) – Manage thresholds (not yet available on Resource level).
* :fa-chart-line-up: [Metrics chart](#fa-chart-line-up-metrics-chart) – Not yet available for this Resource.  

![The Action menu of a Health Check Resource with Details and Edit under Control Center and Metrics chart under Metrics (7.12)][2]  
*Example of available [Remote Actions][]. Every Health Check Resource has the same **Action** menu.*  

### :fa-circle-info: Details

Click the **Action** button, then select **Details** to view the orphaned instances and their row count.  
![Details menu item in the Action menu (7.12)][3]  
*Example of the **Details** menu item.*  

![Details modal for Orphaned DTA service instances with the message There are currently no Orphaned DTA Service Instances and the prerequisites for Remove (7.12)][4]  
*The **Details** modal when no orphaned instances exist, with an explanation and the prerequisites for the **Remove** action.*  

When Orphaned DTA Service Instances exist, click the **Actions** button in the **Details** modal and select **Remove** to set the `dtEndTime` values for orphaned instances. This enables the `DTA Purge and Archive job` (SQL Agent job) to clean these rows on the next run.  
![Actions button][5]  
*Example with the **Actions** button.*  

Click the **Remove** menu item to initiate the operation.  
![Remove button][6]  

### :fa-edit: Edit thresholds

Change monitoring thresholds from the [Health Check | Misc][Configuration - Misc] tab in the [Configuration][] for your :Nodinite: [Microsoft BizTalk Server Monitoring Agent][BizTalk Agent].  
If you click the **Edit** menu item in the **Action** button, a modal says *This view is not available yet for the resource 'Orphaned DTA service instances'*.  
![Edit menu item in the Action menu (7.12)][7]  
*Example of the **Edit** menu item.*  

![Edit modal for Orphaned DTA service instances with the message This view is not available yet (7.12)][8]  
*The **Edit** modal for Orphaned DTA Service Instances: change the thresholds in the [Configuration][] instead.*  

### :fa-chart-line-up: Metrics chart

Not yet available for this Resource: the modal says *No metrics found for this Resource*.

Click the **Action** button and select **Metrics chart**.  
![Metrics chart menu item in the Action menu (7.12)][9]  
*Example of the **Metrics chart** menu item.*  

![Metrics for Orphaned DTA service instances with the message No metrics found for this Resource (7.12)][10]  
*The **Metrics chart** modal for this Resource.*  

___

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

:fa-edit: [Configuration][]  

## :fa-link-horizontal: Related Topics

:fab fa-connectdevelop: :Nodinite: [Microsoft BizTalk Server Monitoring Agent][BizTalk Agent]
:fa-display: [Monitor Views][]  

[1]:{ndm}/Documentation%20Pictures/MonitorAgent/BizTalk/Categories/HealthCheck/OrphanedDtaServiceInstancesResource.png
[2]:{ndm}/Documentation%20Pictures/MonitorAgent/BizTalk/Categories/HealthCheck/Actions.png
[3]:{ndm}/Documentation%20Pictures/MonitorAgent/BizTalk/Categories/HealthCheck/ActionDetailsMenuItem.png
[4]:{ndm}/Documentation%20Pictures/MonitorAgent/BizTalk/Categories/HealthCheck/OrphanedDtaServiceInstances_NONE.png
[5]:{ndm}/Documentation%20Pictures/MonitorAgent/BizTalk/Categories/HealthCheck/OrphanedDtaServiceInstances_Action.png
[6]:{ndm}/Documentation%20Pictures/MonitorAgent/BizTalk/Categories/HealthCheck/RemoveOrphanedInstanceActionMenuItem.png
[7]:{ndm}/Documentation%20Pictures/MonitorAgent/BizTalk/Categories/HealthCheck/ActionEditMenuItem.png
[8]:{ndm}/Documentation%20Pictures/MonitorAgent/BizTalk/Categories/HealthCheck/OrphanedDtaServiceInstancesEdit.png
[9]:{ndm}/Documentation%20Pictures/MonitorAgent/BizTalk/Categories/HealthCheck/ActionsMetricsChart.png
[10]:{ndm}/Documentation%20Pictures/MonitorAgent/BizTalk/Categories/HealthCheck/OrphanedDtaServiceInstancesMetrics.png

[BizTalk Agent]:{ndr}/Logging%20and%20Monitoring/Microsoft%20BizTalk%20Server%20-%20Monitoring/Overview.md
[Configuration]:{ndr}/Logging%20and%20Monitoring/Microsoft%20BizTalk%20Server%20-%20Monitoring/Getting%20started/3.%20Configuration.md
[Configuration - Misc]:{ndr}/Logging%20and%20Monitoring/Microsoft%20BizTalk%20Server%20-%20Monitoring/Getting%20started/Configuration/Health%20Check%20Tab.md#misc
[Expected State]:{ndr}/Administration/2.%20Monitor%20Management/3.%20Resources/Features/Expected%20State.md
[Health Check]:{ndr}/Logging%20and%20Monitoring/Microsoft%20BizTalk%20Server%20-%20Monitoring/Features/Health%20Check/Overview.md
[Monitor Views]:{ndr}/Administration/2.%20Monitor%20Management/1.%20Monitor%20Views/Features/What%20is%20a%20Monitor%20View.md
[Prerequisites for BizTalk Monitoring Agent]:{ndr}/Logging%20and%20Monitoring/Microsoft%20BizTalk%20Server%20-%20Monitoring/Getting%20started/1.%20Prerequisites.md
[Remote Actions]:{ndr}/Getting%20Started/3.%20Monitor/Remote%20Actions.md
[Resources]:{ndr}/Administration/2.%20Monitor%20Management/3.%20Resources/Features/What%20is%20a%20Resource.md