You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/connectors/connectors-create-api-servicebus.md
+18-4Lines changed: 18 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ services: logic-apps
5
5
ms.suite: integration
6
6
ms.reviewer: estfan, azla
7
7
ms.topic: how-to
8
-
ms.date: 08/26/2024
8
+
ms.date: 09/03/2024
9
9
ms.custom: engagement-fy23
10
10
---
11
11
@@ -580,23 +580,37 @@ In Standard workflows, to read a message from a dead-letter queue in a queue or
580
580
581
581
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.
582
582
583
-
### No session available
583
+
### No session available or might be locked by another receiver
584
584
585
585
Occasionally, operations such as completing a message or renewing a session produce the following error:
586
586
587
587
``` json
588
588
{
589
589
"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",
591
590
"error": {
592
591
"message": "No session available to complete the message with the lock token 'ce440818-f26f-4a04-aca8-555555555555'."
593
592
}
594
593
}
595
594
```
596
595
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
+
597
607
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.
598
608
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.
600
614
601
615
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.
0 commit comments