---
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.
---

# :fa-suitcase-medical: Messages with negative ref count

>[!INFO]
>The :Nodinite: [BizTalk Monitoring Agent][BizTalk Agent] continuously monitors BizTalk Server for **Messages with negative ref count**, empowering you to maintain a healthy integration environment.  

* 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].*  

:fa-folder: **Category Name** = "Health Check"  
:fa-lightbulb-on: **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.

## :fa-key: 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|:fa-bolt: 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|:fa-circle-info: [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|:fa-circle-info: [Details][]|  
|✅ <span title="Used to indicate normal operation">OK</span>|**No Messages with negative ref count exist**|Normal state||  

___

## :fa-bolt: Actions

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

* :fa-circle-info: **Details** – View details about 'Messages with negative ref count'.
  * :fa-trash-can: **Remove** – Instantly fix the problem by repairing content in tables.

### :fa-circle-info: 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**.

#### :fa-trash-can: Remove

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

* :fa-trash-can: **Remove** – Remove 'Messages with negative ref count'.

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

>[!IMPORTANT]
>Before executing the 'Remove' action, ensure you follow all instructions regarding stopped host instances and backups.

>[!INFO]
>All [User][Users] operations within :Nodinite: are [Log Audited][Log Audits], supporting your security and corporate governance compliance policies.  

___

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

:fa-display: [Monitor Views][]  
:fa-edit: [Configuration][]  

## :fa-link-horizontal: Related Topics

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

[1]:{ndm}/Documentation%20Pictures/MonitorAgent/BizTalk/Categories/HealthCheck/MessageswithNegativeRefCountasResource.png
[2]:{ndm}/Documentation%20Pictures/MonitorAgent/BizTalk/Categories/HealthCheck/MessageswithNegativeRefCountAction.png
[3]:{ndm}/Documentation%20Pictures/MonitorAgent/BizTalk/Categories/HealthCheck/MessageswithNegativeRefCountModal.png

[BizTalk Agent]:{ndr}/Logging%20and%20Monitoring/Microsoft%20BizTalk%20Server%20-%20Monitoring/Overview.md
[BTHealth Check]:{ndr}/Logging%20and%20Monitoring/Microsoft%20BizTalk%20Server%20-%20Monitoring/Features/Health%20Check/Overview.md
[Categories]:{ndr}/Administration/2.%20Monitor%20Management/4.%20Categories/Features/What%20is%20a%20Category.md
[Configuration]:{ndr}/Logging%20and%20Monitoring/Microsoft%20BizTalk%20Server%20-%20Monitoring/Getting%20started/3.%20Configuration.md
[Details]:#fa-circle-info-details
[Log Audits]:{ndr}/Administration/6.%20Tools/2.%20Log%20Audit%20Search.md
[Monitor Views]:{ndr}/Administration/2.%20Monitor%20Management/1.%20Monitor%20Views/Features/What%20is%20a%20Monitor%20View.md
[Prerequisites]:{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
[Users]:{ndr}/Administration/3.%20Access%20Management/2.%20Users/Features/What%20is%20a%20User.md