Skip to content

Commit bdff3e7

Browse files
Merge pull request #286067 from xuehongg/mybranch5
Adding another affinity related error
2 parents 740fd50 + 3af650e commit bdff3e7

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

articles/connectors/connectors-create-api-servicebus.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: logic-apps
55
ms.suite: integration
66
ms.reviewer: estfan, azla
77
ms.topic: how-to
8-
ms.date: 08/26/2024
8+
ms.date: 09/03/2024
99
ms.custom: engagement-fy23
1010
---
1111

@@ -580,23 +580,37 @@ In Standard workflows, to read a message from a dead-letter queue in a queue or
580580

581581
If a Service Bus trigger's polling interval is small, such as 10 seconds, updates to your workflow might not take effect for up to 10 minutes. To work around this problem, you can disable the logic app resource, make the changes, and then enable the logic app resource again.
582582

583-
### No session available
583+
### No session available or might be locked by another receiver
584584

585585
Occasionally, operations such as completing a message or renewing a session produce the following error:
586586

587587
``` json
588588
{
589589
"status": 400,
590-
"message": "No session available to complete the message with the lock token 'ce440818-f26f-4a04-aca8-555555555555'. clientRequestId: facae905-9ba4-44f4-a42a-888888888888",
591590
"error": {
592591
"message": "No session available to complete the message with the lock token 'ce440818-f26f-4a04-aca8-555555555555'."
593592
}
594593
}
595594
```
596595

596+
Occasionally, a session-based trigger might fail with the following error:
597+
598+
``` json
599+
{
600+
"status": 400,
601+
"error": {
602+
"message": "Communication with the Service Bus namespace 'xxxx' and 'yyyy' entity failed. The requested session 'zzzz' cannot be accepted. It may be locked by another receiver."
603+
}
604+
}
605+
```
606+
597607
The Service Bus connector uses in-memory cache to support all operations associated with the sessions. The Service Bus message receiver is cached in the memory of the role instance (virtual machine) that receives the messages. To process all requests, all calls for the connection get routed to this same role instance. This behavior is required because all the Service Bus operations in a session require the same receiver that receives the messages for a specific session.
598608

599-
The chance exists that requests might not get routed to the same role instance, due to reasons such as an infrastructure update, connector deployment, and so on. If this event happens, requests fail because the receiver that performs the operations in the session isn't available in the role instance that serves the request.
609+
Due to reasons such as an infrastructure update, connector deployment, and so on, the possibility exists for requests to not get routed to the same role instance. If this event happens, requests fail for one of the following reasons:
610+
611+
- The receiver that performs the operations in the session isn't available in the role instance that serves the request.
612+
613+
- The new role instance tries to obtain the session, which either timed out in the old role instance or wasn't closed.
600614

601615
As long as this error happens only occasionally, the error is expected. When the error happens, the message is still preserved in the service bus. The next trigger or workflow run tries to process the message again.
602616

0 commit comments

Comments
 (0)