Save/Archive BizTalk Server all suspended messages using PowerShell

  • Sandro Pereira
  • Jan 19, 2022
  • 2 min read

No matter what you do, issues will happen at some point, and we need to deal with them. For example, on BizTalk Server, messages can get suspended for many reasons. Sometimes, we can resume these suspended messages. But, in other situations, we can’t, or no matter what we do, they cannot be processed because they contain some errors that need to be fixed.

Regardless of the scenario or the reasons for this to happen, there are situations that we endup having several messages suspended on BizTalk Server. Using the out-of-the-box BizTalk Server Administration tool, we can only save one message at a time, so we have to go through each message one by one and, after several clicks, save it to the hard drive. This is a huge, time-consuming operation.

To expedite these operations, we can use PowerShell. It’s true that we will need to spend a little time creating these PowerShell scripts, but the gain that we get is massive, and once made, we can use it anytime.

📝 One-Minute Brief

A quick and efficient way to export all suspended BizTalk Server messages using PowerShell. Instead of saving each message manually through the Admin Console, this script retrieves the body of every suspended message and saves them to a folder, dramatically reducing troubleshooting time.

With this script, we can retrieve the body/payload of all suspended BizTalk Server messages and save them to a specific folder – no filters required.

Tracked messages

The result will be a list of messages created on our hard drive:

Tracked messages download

Download

THIS POWERSHELL IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND.

You can download Save/archive all BizTalk Server suspended messages with PowerShell from GitHub here:

Hope you find this helpful! If you liked the content or found it useful and would like to support me in writing more, consider buying (or helping to buy) a Star Wars Lego set for my son. 

Thanks for Buying me a coffe
Author: Sandro Pereira

Sandro Pereira lives in Portugal and works as a consultant at DevScope. In the past years, he has been working on implementing Integration scenarios both on-premises and cloud for various clients, each with different scenarios from a technical point of view, size, and criticality, using Microsoft Azure, Microsoft BizTalk Server and different technologies like AS2, EDI, RosettaNet, SAP, TIBCO etc. He is a regular blogger, international speaker, and technical reviewer of several BizTalk books all focused on Integration. He is also the author of the book “BizTalk Mapping Patterns & Best Practices”. He has been awarded MVP since 2011 for his contributions to the integration community.

1 thought on “Save/Archive BizTalk Server all suspended messages using PowerShell”

Leave a Reply

Your email address will not be published. Required fields are marked *

The Ultimate Cloud
Management Platform for Azure

Supercharge your Azure Cost Saving

Learn More
Turbo360 Widget

Back to Top