azure-logic-apps

BlakeneyEric-5139 1 Reputation point
2020-09-18T11:48:18.387+00:00

My service bus trigger in my logic apps failes with error code 400: message": "It is not possible for an entity that requires sessions to create a non-sessionful message receiver. TrackingId:76cfc020-7b38-4ecb-b54e-3957f725e25f_G5_B9, SystemTracker:cbntest:Topic:news|Sports, Timestamp:2020-09-18T11:44:04\r\nclientRequestId: 952a96ec-2c6c-4c17-b43f-ced703b6bb00",
"error": {
"message": "It is not possible for an entity that requires sessions to create a non-sessionful message receiver. TrackingId:76cfc020-7b38-4ecb-b54e-3957f725e25f_G5_B9, SystemTracker:cbntest:Topic:news|Sports, Timestamp:2020-09-18T11:44:04"

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,211 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Julian Hüppauff 341 Reputation points Microsoft Employee
    2020-09-18T12:29:01.333+00:00

    Which logic app connector are you using?

    AFAIK there are two, service bus and service bus subscription.
    Judging from your error message you might want to test to disable sessions in Service Bus:
    25871-grafik.png

    0 comments No comments

  2. MayankBargali-MSFT 70,536 Reputation points
    2020-09-18T13:39:44.763+00:00

    Hi @BlakeneyEric-5139

    The error message is expected behavior as looking into backend logs I could see that the subscription (spo***) is session enabled, and the sender sends the message with the session id while the receiver will receive the message only if you are passing the session ID. Further looking into your logic app configuration I can see that you are using the action "When a message is received in a topic subscription (auto complete)" where there is no option to configure the session ID details while receiving the messages.

    You need to create the trigger as "When a message is received in a topic subscription (peek-lock)" which has the option to pass the custom session ID or next available session ID. In the below screenshot I have used the session as "Next Available".

    25825-image.png

    Once you have consumed the message you need to create action to complete the message.

    Alternative if you want to use "When a message is received in a topic subscription (auto complete)" trigger then your sender application should not send the message using session ID and you need to create a new subscription that should not have "Enable sessions" property enabled. You cannot change this property in an already created subscription.

    Hope the above helps in resolving the issue. Please let me know if you have any queries.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.