Sandeep Tripathi
Sandeep Tripathi

Reputation: 77

Azure.Messaging.ServiceBus.ServiceBusReceivedMessage is received with null properties in Azure function ServiceBusTrigger

We have an azure function that is using ServiceBusTrigger to subscribe to a service bus topic. It used to work fine until recently made changes. Recent Changes: we have moved from "Microsoft.Azure.ServiceBus" to "Azure.Messaging.ServiceBus" and hence we are using Azure.Messaging.ServiceBus.ServiceBusReceivedMessage to receive the message in the azure function instead of "Message" from "Microsoft.Azure.ServiceBus". However, after we did this change, we are seeing the messages are getting received but the properties and data inside the message is null. Also, the DeliveryCount is exceptioned out always.

Screenshot from my debug session

Upvotes: 0

Views: 1579

Answers (1)

Mayur Pawar
Mayur Pawar

Reputation: 167

In order to use the Azure.Messaging.ServiceBus Nuget package you have to update the Microsoft.Azure.WebJobs.Extensions.ServiceBus to 5.x.

similar issue answered here, Azure Function ServiceBusReceivedMessage ApplicatonProperties are empty

Upvotes: 2

Related Questions