I was trying something in Service Bus Queue today with SB-Messaging adapter from on-premise BizTalk Server. So to quickly try, I created a Queue under my namespace in Service Bus. I used “Quick Create” option in the wizard to create a Queue.
Then in my on-premise BizTalk, created a simple send port with SB-Messaging adapter which would send the message to the configured Queue. But the message transmission was failing with the following error in the event log:
The adapter failed to transmit message going to send port “YourSendPortName” with URL “sb://NameSpace.servicebus.windows.net/QueueName”. It will be retransmitted after the retry interval specified for this Send Port. Details:”System.InvalidOperationException: This client is not supported for a partitioned entity. The client version should be greater or equal than version…
The error clearly says “This client is not supported for a partitioned entity”. The entity I use here is Queue and the error says “partitioned entity” is not supported. But I didn’t select the “partitioned” while creating the Queue. So now I tried to create another queue, but this time using “Custom Create” option.
During custom Create Wizard for creating queue in the second step – in “Configure Queue” screen, you would see the option – “Enable Partitioning” enabled by default.
So I unchecked this “Enable Partitioning” option while creating the queue.
Now when I send the message to this newly created Queue, the message transmission was successful.
Partitioning was recently added to Service Bus Queues and Topics for reliability and to provide higher maximum message throughput. But any Partitioned Service Bus Queues and Topics is not support in on-premise BizTalk server and also in BizTalk Services. Partitioning is enabled by default on Queues and this cannot be disable once the Queue has been created. So for BizTalk integration with a Queue, it’s safer to use “Custom Create” option to create Queue and uncheck this default “Enable Partitioning” option.
More about Partitioned Service Bus Queues and Topics is here: Partitioned Service Bus Queues and Topics