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 water 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 are only allowed to save one message at a time, which means that we need to go one by one and, after several clicks, save the message on 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.
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.
The result will be a list of messages created on our hard drive:
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:
The post Save/Archive BizTalk Server all suspended messages using PowerShell appeared first on SANDRO PEREIRA BIZTALK BLOG.