LogicApp EventHub action properties turn up with special characters prefixed

Anonymous
2022-10-14T16:55:09.72+00:00

I need to move events from one EventHub namespace to another EventHub namespace.

Source EH Namespace -> Source EH -> Logic App -> EventHub trigger when messages arrive -> EventHub action with Content and Properties -> Destination EH -> Event/Message Header values has two special characters prefixed

Body/Content of the event comes as expected into the destination EventHub.
Headers of the source event come in as Properties section in the Body. These properties when sent to the destination do not come decoded by base64 to string alike Body Content.
After applying base64 decoding to every required property in the header/BodyProperties, the destination EventHub has event headers prefixed with Hexadecimals like A1, 08, 24.

The action EventHub somehow sends these special characters is my guess. Between EventHub action connector and EventHub there is no other transformation happening. Here are some examples. The first two characters is a mess wasting my time.

aggregateName � shipment (Hexa A108 prefixed)
eventId �$ce643fc8-d2dc-44e2-9f03-b8be675ec5e1 (Hexa A124 prefixed)
tenantId �$5d335b18-b076-4c1b-bbe1-3aefe66a01bb (Hexa A124 prefixed)

Any guidance would really be helpful.

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
Azure Event Hubs
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,991 Reputation points Moderator
    2022-10-18T07:31:30.417+00:00

    @Anonymous Thanks for reaching out. I have tried to reproduce the issue at my end but couldn't observe the same behavior. Can you please share your workflow in case I have missed anything? I am directly passing the properties of source to destination eventhub.

    251521-image.png

    **Source EventHub: ** Adding the message properties as you are passing

    251425-image.png

    **Destination Hub: ** We can see the same values without any special characters being added
    251426-image.png

    0 comments No comments

Your answer

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