1

The send message action always said "Message Received could not be parsed and is null" Error output

The input is json array. Input information and data

Any suggestion?

Thank you

1
  • Post your info on this page (and we need more to help you); do not use links. Commented May 2, 2017 at 20:47

1 Answer 1

6

Figured it out.

Looks like sending a message to service bus requires the message content to be base64 encoded. Since content is a JSON, need to stringify it explicitly prior to encoding, i.e. use @encodeBase64(string(jsonContent))

Changing the content type to text/plain has the same effect, since in that case the content is treated as a string to begin with.

Sign up to request clarification or add additional context in comments.

3 Comments

this answer should me more prominent than it is :)
I'm facing the same issue, I have the json object that I would like to encode. I'm not able to find @encodeBase64 method/function in the editor. Could you please help?
@SachidanandaNaik the function in Logic Apps is called base64().

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.