logicapps icon indicating copy to clipboard operation
logicapps copied to clipboard

Logic Apps (Standard) - Service Bus Connector not deserializing contentType application/json; charset=utf-8

Open asos-chrishimsworth opened this issue 2 years ago • 1 comments

When using the below workflow, if a message is processed with a contentType of application/json; charset=utf-8, then when the sub-workflow is invoked, the contents of the message are not passed through as JSON. The raw input just shows as: "body": { "$content-type": "application/json; charset=utf-8", "$content": "eyJ0b........" }

If I manually re-submit the same message, but change the contentType to be just application/json the message is processed as expected and the contents are passed to the sub-workflow as JSON. The raw input shows correctly as JSON: "body": { "topic": "...", "subject": "..." }

The source of the Service Bus message is an Event Grid Subscription to Service Bus, so I cannot control the message being published.

image

The workflow action is: { "inputs": { "host": { "workflow": { "id": "EventGridProcessor" } }, "body": "@items('For_each_message')?['contentData']" } }

asos-chrishimsworth avatar May 05 '22 15:05 asos-chrishimsworth

Thanks Chris for reporting this. We will be fixing this.

apranaseth avatar May 20 '22 21:05 apranaseth

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Oct 20 '22 21:10 github-actions[bot]

This issue was closed because it has been inactive for 7 days since being marked as stale.

github-actions[bot] avatar Oct 27 '22 22:10 github-actions[bot]