We have written logic app workflow to process message from DLQ of Service Bus Subscription. Its behavior is strange, as for one Subscription it is working fine but for other subscription in same topic it is giving below error
Below is the snapshot shot of topic properties
Below is the snapshot of Subscription overview, which clearly shows that auto forwarding is off and never enabled
To investigate it further, we tried the following
- Tried to receive messages in "Peek lock Mode" using Azure Function, but there its behavior is totally different, where it is not giving any error but returning message as null.
- Tried receiving using "Receive and Delete Mode" and now it was returning the message as null, but on other side it was deleting the message from DLQ as well.
As it is deleting a message from DLQ, so it means it processed the message, but some how message is coming as null.