---
title: Monitor and Resolve BizTalk Messages with Negative Ref Count using Nodinite
description: Proactively monitor BizTalk Server for Messages with negative ref count using Nodinite. Instantly receive alerts, take corrective actions, and ensure optimal performance and compliance for your BizTalk environment.
---

# <i class="fal fa-suitcase-medical" aria-hidden="true"></i> Messages with negative ref count

<aside aria-label="Info" class="nodinite-note nodinite-note--info">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-square-info"></i> Info</p>
<div class="nodinite-note__content"><p>The <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> <a href="https://docs.nodinite.com/logging-and-monitoring/microsoft-biztalk-server-monitoring/overview/">BizTalk Monitoring Agent</a> continuously monitors BizTalk Server for <strong>Messages with negative ref count</strong>, empowering you to maintain a healthy integration environment.</p></div>
</aside>

* Nodinite lists **Messages with negative ref count** as a [Resource][Resources] named 'Messages with negative ref count'.  
* The 'Messages with negative ref count' [Resource][Resources] belongs to the BizTalk '[Health Check][BTHealth Check]' [Category][Categories].  

![Messages with negative ref count Resource in OK state in a Monitor View filtered on the Health Check category (7.12)][1]  
*Example: Monitoring the 'Messages with negative ref count' resource in a [Monitor View][Monitor Views].*  

<i class="fal fa-folder" aria-hidden="true"></i> **Category Name** = "Health Check"  
<i class="fal fa-lightbulb-on" aria-hidden="true"></i> **Resource Name** = "Messages with negative ref count"  

>Messages with negative ref counts are entries in the MessageRefCountLogTotals table with snRefCount less than zero. Once a refcount goes negative, the MsgBox cleanup jobs cannot clean up the corresponding message, potentially leading to performance issues.

## <i class="fal fa-key" aria-hidden="true"></i> Key Features for Monitoring BizTalk Server Messages with Negative Ref Count

* [Remote Actions][] – Instantly execute remote actions to resolve issues.  
* **State Evaluation** – Nodinite automatically monitors and evaluates the run-time state, alerting you to problems before they impact your business.  

## What is evaluated for 'Messages with negative ref count'?

Nodinite evaluates the state of this resource and provides actionable insights:

|State|Status|Description|<i class="fal fa-bolt" aria-hidden="true"></i> Actions|  
|---|---|---|---|  
|🚫 <span title="Used to indicate an error/fatal condition">Unavailable</span>|**Resource not available**|Evaluation of the 'BizTalk Messages with negative ref count' is not possible due to network or security issues|Review [prerequisites][]|  
|❌ <span title="Used to indicate that an error or abnormal condition has been detected">Error</span>|**Messages with negative ref count exist**|When **Messages with negative ref count** exceed the configured threshold|<i class="fal fa-circle-info" aria-hidden="true"></i> [Details][]|  
|⚠️ <span title="Used to indicate an unexpected but not invalid state"> Warning</span>|**Messages with negative ref count exist**|When **Messages with negative ref count** exceed the configured threshold|<i class="fal fa-circle-info" aria-hidden="true"></i> [Details][]|  
|✅ <span title="Used to indicate normal operation">OK</span>|**No Messages with negative ref count exist**|Normal state||  

___

## <i class="fal fa-bolt" aria-hidden="true"></i> Actions

Unlock powerful [Remote Actions][] for the **Messages with negative ref count** [Resource][Resources]:

* <i class="fal fa-circle-info" aria-hidden="true"></i> **Details** – View details about 'Messages with negative ref count'.
  * <i class="fal fa-trash-can" aria-hidden="true"></i> **Remove** – Instantly fix the problem by repairing content in tables.

### <i class="fal fa-circle-info" aria-hidden="true"></i> Details

Click the **Action** button of the Resource and select **Details**. In the **Details** modal, you can see the number of 'Messages with negative ref count', an explanation, and the prerequisites for the **Remove** action.  
![Details modal for Messages with negative ref count with Number of messages 0 and the prerequisites for the action (7.12)][3]  
*The **Details** modal; here no messages with a negative ref count exist.*  

You can also resolve the issue by clicking the **Actions** button and selecting **Remove**.

#### <i class="fal fa-trash-can" aria-hidden="true"></i> Remove

Nodinite provides the same functionality as the Microsoft Terminator tool, allowing you to remove 'Messages with negative ref count' directly:

* <i class="fal fa-trash-can" aria-hidden="true"></i> **Remove** – Remove 'Messages with negative ref count'.

Click the **Actions** button and select the **Remove** menu item to fix the problem.  
![Remove][2]  

<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p>Before executing the 'Remove' action, ensure you follow all instructions regarding stopped host instances and backups.</p></div>
</aside>

<aside aria-label="Info" class="nodinite-note nodinite-note--info">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-square-info"></i> Info</p>
<div class="nodinite-note__content"><p>All <a href="https://docs.nodinite.com/administration/access-management/users/features/what-is-a-user/">User</a> operations within <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> are <a href="https://docs.nodinite.com/administration/tools/log-audit-search/">Log Audited</a>, supporting your security and corporate governance compliance policies.</p></div>
</aside>

___

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

<i class="fal fa-display" aria-hidden="true"></i> [Monitor Views][]  
<i class="fal fa-edit" aria-hidden="true"></i> [Configuration][]  

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

<i class="fab fa-connectdevelop" aria-hidden="true"></i> <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Microsoft BizTalk Server Monitoring Agent][BizTalk Agent]

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/BizTalk/Categories/HealthCheck/MessageswithNegativeRefCountasResource.png
[2]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/BizTalk/Categories/HealthCheck/MessageswithNegativeRefCountAction.png
[3]:https://docs.nodinite.com/media/Documentation%20Pictures/MonitorAgent/BizTalk/Categories/HealthCheck/MessageswithNegativeRefCountModal.png

[BizTalk Agent]:https://docs.nodinite.com/logging-and-monitoring/microsoft-biztalk-server-monitoring/overview/
[BTHealth Check]:https://docs.nodinite.com/logging-and-monitoring/microsoft-biztalk-server-monitoring/features/health-check/overview/
[Categories]:https://docs.nodinite.com/administration/monitor-management/categories/features/what-is-a-category/
[Configuration]:https://docs.nodinite.com/logging-and-monitoring/microsoft-biztalk-server-monitoring/getting-started/configuration/
[Details]:#fa-circle-info-details
[Log Audits]:https://docs.nodinite.com/administration/tools/log-audit-search/
[Monitor Views]:https://docs.nodinite.com/administration/monitor-management/monitor-views/features/what-is-a-monitor-view/
[Prerequisites]:https://docs.nodinite.com/logging-and-monitoring/microsoft-biztalk-server-monitoring/getting-started/prerequisites/
[Remote Actions]:https://docs.nodinite.com/getting-started/monitor/remote-actions/
[Resources]:https://docs.nodinite.com/administration/monitor-management/resources/features/what-is-a-resource/
[Users]:https://docs.nodinite.com/administration/access-management/users/features/what-is-a-user/