Repair and resubmit message stuck - Service Bus Explorer

219 views Asked by At

It seems that my Service Bus Explorer application got stuck somehow when trying to perform the "Repair and resubmit message" from the dead-letter queue.

There was a problem with the SMTP server so now i have to resend messages manually, it worked fine for the first 400 messages but then it just randomly stopped working, taking 3 minutes trying to resend a single message and then giving me the error "No message was moved. ~~". It works fine when doing it straight from the Azure Portal but it does not work from the application.

This is the error i am receiving, first i got this error aswell but it at least sent all the messages it could, now it doesnt send any messages. ServiceBus Error message

Any suggestions as to why it randomly stopped working manually resending from the dead-letter queue in the Service Bus Explorer application? Are there some cache issues or logs you can clear? Since it is working in the Azure Portal this seems to be a problem within this program. It is just very hard to debug the cause of the problem..

I tried to change lock duration, increasing the delivery count, updating the version, changing the message id and checking logs but nothing seems to work. I am using "Topics" to send out events.

1

There are 1 answers

0
Rajesh  Mopati On

Using the below code we have moved successfully the messages to the Service Bus to the Topic or Queue

ServiceBusConnectionStringBuilder conStr;
            QueueClient client;
            try
            {
                conStr = new ServiceBusConnectionStringBuilder(QueueAccessKey);
                client = new QueueClient(conStr);

                Message msg = new Message();
                msg.Body = Encoding.UTF8.GetBytes(messgae);
                client.SendAsync(msg).Wait();
            }

enter image description here

enter image description here

The dead-letter queue stores the messages which are not delivered or not processed. And the reason for it can be viewed in Azure, as shown in below snippet

enter image description here

enter image description here

for more information on Service bus message exceptions and service bus dead letter queues