Data received from EventHubs not in desired format

SriRaghavendran Prabhakaran 300 Reputation points
2024-09-09T15:36:12.0366667+00:00

hello team,

we have EventHub trigger configured at logic app, when there is an event change at function app upsteam application, the message should received in logic app is JSON Array instead we are receiving JSON object. Let me know, to enable any settings at Event hub .

Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
641 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 32,726 Reputation points MVP
    2024-09-09T17:35:57.16+00:00

    Hello @SriRaghavendran Prabhakaran ,

    welcome to this moderated Azure community forum.

    As seen in this Azure Function example you can see the Event Hub trigger generated an array of strings (but this can be casted to the EventData too so you get access to more properties than the body alone):User's image

    The EventHub Event Processor can also handle batches.

    So it's not uncommon to consume EventHub messages in batches.

    I checked this documentation about the Logic Apps Event Hub trigger and it mentions the "Maximum Events Count":

    User's image

    So, check that documentation:

    User's image If you work in batches, you probably need to handle the Logic App source message as an array and loop through them.

    Please try out the documentation first to learn about the behavior of the settings.


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.

    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.