Celeb Glow
general | March 05, 2026

How to move MSMQ message to another queue

I have a problem moving messages from one queue to another on my development box (Windows 8.1). I'm using MassTransit service bus which generates three private queues per service instance for me. One for the normal inbound messages, one for error messages and one for subscriptions. When there's a fault in a message consumer MT tries a few times before it moves it to the error queue.

Now during development this happens frequently, but instead of starting the whole chain of events from the top all the time, I would like to move the messages back to the inbound queue to retry it after changing the code. So naturally I try the MSMQ snap-in found in the Control-Panel/Administrative Tools/Computer Management and under Services and Applications->Message Queuing I open the error queue in question, right-clicking a message and selects All Tasks->Move.

Here I would assume that the combobox should contain all my private queues, but no, it's empty. And trying to input it doesn't help. I only get a message that says

Failed to move message from DIRECT=OS:{computer name}\private${source_queue} to DIRECT=OS:{whatever I try to write in the combobox} because the target queue or subqueue is invalid.

Please help me with the syntax, or whatever else could be wrong!

2

2 Answers

I use ServiceBusExplorer which can be downloaded from

Then do the following steps,

  1. Connect using your connection string
  2. Select your _error queue and press the messages button
  3. Highlight the messages that you want to re-queue
  4. Right click and choose to Resubmit in batch mode

enter image description here

  1. Choose submit and then your queue you consume from (the one that they came on through originally)

The easiest solution is to use a tool to move messages, like MSMQ Studio.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy