403 error or null value while reading messages from Service Bus DLQ using Logic App/Azure Function

Rakesh Aggarwal 0 Reputation points
2023-07-18T03:21:04.29+00:00

Few days back we added azure function to read messages from DLQ of Topic/Subscription and after processing few messages it started giving null as a value of message even messages are available in DLQ. Due to this it got stuck in DLQ and we are not able to process messages from DLQ.

To investigate it further we added the logic app workflow as well to process messages from DLQ and we are getting below error

User's image

Error message clearly says that, when auto forwarding is enabled then we can't read messages from topic.

But its very strange that in the same topic, we are able to read/process messages from another subscription, with no issues at all. Below is snapshot of configuration for the topic

User's image

We are now helpless in this regard as, no auto forwarding is applied and even it processed few messages using Azure Function and then suddenly stopped.

If any one is having some clue about the issue then kindly suggest.

Thanks in advance :)

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
700 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,911 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,543 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,936 Reputation points Moderator
    2023-07-18T10:34:17.45+00:00

    @Rakesh Aggarwal Thanks for reaching out.

    When you are using topic subscription then the message is always sent to the topic, but the messages are consumed from the subscriptions that are created under the topic and not from the topic itself.

    For more details you can refer to this document.

    So, if you have enabled auto forwarding on any of the subscriptions under the topic then you cannot use any application/receiver to receive the messages from that particular subscription. That is the reason you are able to consume the messages from another subscription on the same topic.

    You need to create another subscription with the same filter as your previous one so the new message can now be received from this new subscription.

    For more details on auto forwarding, you can refer to this document.

    Let me know if you have any queries or concerns.

    Please "Accept Answer" if the answer is helpful so that it can help others in the community.


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.