--- title: "Receive data from Service Bus dead letter queue" slug: "receive-data-from-service-bus-dead-letter-queue" description: "Learn how to process messages from the Service Bus dead letter queue in D365 F&SCM, including steps for batch processing and error handling." tags: ["Connectivity Studio", "CS", "Task"] updated: 2026-04-14T13:21:40Z published: 2026-04-14T13:21:40Z canonical: "docs.staedean.com/receive-data-from-service-bus-dead-letter-queue" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.staedean.com/llms.txt > Use this file to discover all available pages before exploring further. # Receive data from Service Bus dead letter queue 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 F&SCM. For example, you can set a Production order 'On hold' when a dead letter is received on the export of a production order. ### Steps 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: In the **Source connector** field, enter or select a value. - **Service Bus namespace** - **Queue or topic subscription** (which define the related dead letter queue) - **Authentication** 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. 1. You can receive data from a Service dead letter queue in batch in a recurring pattern. Expand the **Run in the background** section. 2. Select **Yes** in the Batch processing field and fill in the other fields as desired. 3. Click **Recurrence**. 4. Fill in the recurrence settings as desired and click **OK**. 5. Click **OK**. 7. Close the page. > [!NOTE] > **Notes** > > You cannot apply peek lock on receiving data from a dead letter queue. ## Related - [Data import from Azure Service Bus dead letter queue](/data-import-from-azure-service-bus-dead-letter-queue.md) - [Service Bus search definitions](/service-bus-search-definitions.md) - [Data export to Azure Service Bus queue or topic](/data-export-to-azure-service-bus-queue-or-topic.md)