Azure Service Bus: No session available to complete the message with the lock token

Viewed 209

I am working with Service Bus Queues in Logic Apps but sometimes when a lot of messages are coming through at a certain time I am starting to get this error while trying to complete the message. It's not related to Message lock lost or Lock Duration, I have looked into other sources online but couldn't find a solid answer to why is this happening and what to do to avoid this completely.

Partitioning may be a solution but I am not 100% sure.

Error: No session available to complete the message with the lock token
Failed

enter image description here

Thanks, Arslan

1 Answers

As per the Connect to Azure Service Bus from Azure logic apps Microsoft document and as you clearly mentioned that this issue is not because of Message lock lost or lock duration. Maybe the issue could be because of exceeding the session count limit. (1500 unique sessions).

From a service bus, the Service Bus connector can save up to 1,500 unique sessions at a time to the connector cache, per Service Bus messaging entity, such as a subscription or topic. If the session count exceeds this limit, old sessions are removed from the cache. For more information, see Message sessions.

For other technical details about triggers, actions, and limits, which are described by the connector's Swagger description, review the connector reference page. For more about Azure Service Bus Messaging, see What is Azure ServiceBus?

Either you can reduce the sessions per time or you can raise a feature request

Related