If a receiver reads a message from a Service Bus queue or topic subscription, an error can occur. If so, the Service Bus moves the message to the applicable dead letter queue.

You can receive the messages from the Service Bus dead letter queue.

On receiving data from the Service Bus dead letter queue, based on the Service Bus search definitions and settings on the received data, messages are automatically assigned to the received dead letter data records. The assigned messages are used to further process the dead letter data into D365 FO. For example, you can set a Production order 'On hold' when a dead letter is received on the export of a production order.


Standard procedure

1. Go to Connectivity studio > Inquiries > Service Bus queue > Received dead letter data.
2. On the Action Pane, click Operation.
3. Click Receive dead letter data.
4. Define the connector that is used to receive Service Bus dead letter data.
The connector defines where to receive the dead letter data from:
- Service Bus namespace
- Queue or topic subscription (which define the related dead letter queue)
- Authentication
  In the Source connector field, enter or select a value.
5. Define the number of Service Bus messages to be read from the dead letter queue.
If the number is '0', all messages are read from the dead letter queue.
  In the Number of messages field, enter a number.
6. Sub-task: Set recurrence.
  6.1 You can receive data from a Service dead letter queue in batch in a recurring pattern.
  Expand the Run in the background section.
  6.2 Select Yes in the Batch processing field and fill in the other fields as desired.
  6.3 Click Recurrence.
  6.4 Fill in the recurrence settings as desired and click OK.
  6.5 Click OK.
7. Close the page.

Notes

You cannot apply peek lock on receiving data from a dead letter queue.

See also

Provide feedback