Function App trigger stops listening to messages from Service Bus Queue

Naik, Dhara 0 Reputation points
2024-03-12T19:33:39.31+00:00

We have a service bus with 2 queues set up in it and a function app trigger which processes the messages sent by service bus. Our service bus will receive message from a third party system and the message will be processed by the function app trigger.

ISSUE:

Function app trigger stops processing the messages and messages are getting lost.

When we send another message immediately it works.

Function app is on P1V3 App Service plan and "Always on" Is On in Configuration (Generate settings )

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
560 questions
{count} votes

2 answers

Sort by: Most helpful
  1. MayankBargali-MSFT 69,746 Reputation points
    2024-03-13T03:21:59.2833333+00:00

    @Naik, Dhara Thanks for reaching out.

    Can you share more details on the below:

    Function app trigger stops processing the messages and messages are getting lost.

    When you mentioned stop processing the message then you mean that the function app is not getting triggered. Have you verified if the message are send/consumed from the entity(queue, subscription) using the portal metrics if there are any outgoing/incoming message to that entity. You can also verify using service bus explorer to validate if the message are still there.

    When we send another message immediately it works.

    When you send the test message then your function app gets triggered so this confirmed that the message was send successfully and triggered and consumed by your function app.

    By the above test it confirms that there is no issue with the function app and it runs successful.

    Now you should validate this "Our service bus will receive message from a third party system".

    You should validate whether the message is successfully sent by your third-party system/application as there would be issue while sending the message as your test was successful. The same can also be validated by reviewing the incoming message metric for your entity. Once you confirm that there is no incoming message metrics for the timeframe that your third party has send the message then you need to reach out to your third party to validate their application logs to validate if they have send the message successfully.

    Update:

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others", I'll repost your solution in case you'd like to "Accept" the answer.

    Issue:

    You observed that Function app trigger stops processing the messages and messages are getting lost. When we send another message immediately it works.

    Solution:

    You were able to figure out the issue. There was another function that was configured on the same queue and that function was reading the message from the bus and we were not able to see those message.

    Thank you again for your time and patience throughout this issue.

    0 comments No comments

  2. Naik, Dhara 0 Reputation points
    2024-03-13T13:08:21.1+00:00

    Hi Mayank,

    Thank you for your quick reply.

    We were able to figure out the issue.

    other function was also had trigger on same queue and that function was reading the message from the bus and we were not able to see those message.

    Please close this question.

    Thank you.