I have a service bus message that gets transferred to deadletter queue without triggering the function.

Stefan Vesely 0 Reputation points
2024-12-10T14:55:57.76+00:00

Hello Community,
I have a service bus that is related to a queue
every second message the service bus is sending the message to dead letter queue and the function that is supposed to be consuming the message is not even triggering.

so The queue is set to lock a message for 10 minutes once it is delivered once
there is also 10 retry attempts
the function does not trigger as there is logging where "stated" is logged even before it does anything.

When we had the retry steps to 1 it would fail every second message, now it fails every 5 messages.

I have reviewed the logs and everything but I have yet to find any reason why it is doing this, it just states that retry limit is succeeded, why would this be if the function consuming the message doesnt even receive anything?

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
653 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vahid Ghafarpour 22,290 Reputation points
    2024-12-25T19:31:10.92+00:00

    Since the messages are being moved to the DLQ, it's important to check the DLQ for any error messages or reasons why the messages are being dead-lettered. This can give us clues about what's going wrong. You can also check function logs for more information

    https://zcusa.951200.xyz/en-us/azure/service-bus-messaging/service-bus-dead-letter-queues

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.