Inkey Solution Logo
banner

Blogs

Handling Dead Letter Queue(DLQ) using Logic App

, February 11, 2019 11009 Views

In our previous blog, we have explained how to handle DLQ using the Azure Functions.

Please refer:
https://www.inkeysolutions.com/blogs/handling-dead-letter-queuedlq-using-azure-functions/

Lets now learn how to read the messages from the DLQ using the Logic App:

First and foremost, we need to identify the message received in the Dead Letter Queue. So, the trigger step in the Logic App will be: When a message is received in a queue (auto-complete)

Select “DeadLetter” as the Queue type as shown in the below image:

The second step in the Logic App will be to parse the DLQ messages received in the JSON format to user-friendly tokens that represent the properties in your JSON content. For this, we need to add the Parse JSON action of the Logic App as follows:-

You can also filter the DLQ messages by their properties like: error description, dead letter reason and then proceed with what action has to be taken with the undelivered message. Here, we are checking whether the reason for the message being in the DLQ is “TTLExpiredException” or not. If yes then, we are sending the message to the Service Bus that will then send it to the Active Queue.

Here, we are resending the message in the DLQ to the Active view as it is. So, we are setting the Session Id, Content and Content Type properties of the new message same as the one received in the DLQ.

In this manner, we can handle the DLQ messages as required very easily using the Logic Apps.

I hope this helps you.


 

Insert data into Many-to-Many relationship in Dynamics CRM very easily & quickly, using the Drag and drop listbox.
http://www.inkeysolutions.com/what-we-do/dynamicscrmaddons/drag-and-drop-listbox

Create a personal / system view in Dynamics CRM with all the fields on the form/s which you select for a particular entity using the View Creator.
http://www.inkeysolutions.com/what-we-do/dynamicscrmaddons/view-creator

mm

Inkey

INKEY is your solution partner.
Our focus is to deliver you in-time intelligent innovative solutions ("key") for the problems in hand. Maintaining a quality standard right from the inception of a project is our top most priority.

Our team of talented professionals will execute your projects with dedication and excellence. We take ownership and accountability for the effort that goes into meeting our client’s needs.

Years of experience and proven success of delivering innovative custom solutions.

More posts by

One response to “Handling Dead Letter Queue(DLQ) using Logic App”

Leave a Reply

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

The maximum upload file size: 2 MB. You can upload: image, audio, video, document, spreadsheet, interactive, text, archive, code, other. Drop file here

Would you like to digitize your business and put it on the cloud?
Do you need clear, concise reports for your organization?