none
Logic app transferring messages between two Service bus queues RRS feed

  • Question

  • Hi,

    I have a simple Logic app that transfer messages between two service bus queues. Here is the full explanation and issue that I am facing:

    For example I have Queue1 and Queue2. There is a console app that sends messages to Queue1 and the logic app is sending these messages to Queue2. Now I have a simple BizTalk Application(on Prem) that uses SB-Messaging adapter to pick these messages from Queue2. But the messages are getting suspended with below error:

    There was a failure executing the receive pipeline: "Microsoft.BizTalk.DefaultPipelines.PassThruReceive, Microsoft.BizTalk.DefaultPipelines, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Source: "Pipeline " Receive Port: "MsgsSBQueue_ReceivePort" URI: "sb://sb-demo-topic-test.servicebus.windows.net/Queue2" Reason: The Messaging Engine encountered an error while reading the message stream.

    While investigating further I found that there is no content in these messages. After further analyzing I suspect my Send message step in the Logic app might be the culprit. If I point my BizTalk app to Queue1 then messages are received successfully.

    Can someone shed some light into this? Any information around the logic app configuration will be really helpful.

    Regards

    Biranchi

        

    Friday, October 18, 2019 7:32 AM

Answers

All replies

  • I can't think of a reason for why the messages would have no content, assuming everything in the logic app is correct. Could you share the logic app that you are using? (truncate any sensitive data)

    Also, have you considered the auto forwarding feature in service bus instead?

    Friday, October 18, 2019 12:51 PM
    Moderator
  • Hi,

    Thanks a lot for the reply.

    My Logic app is very simple one, Step-1 is "When one or more messages arrive in a queue (auto-complete)- Queue 1" and the second Step is "Send Message- Queue-2". So, I am wondering what can go wrong with this Logic app.

    No, I have not looked into auto forwarding feature, will look into it.

    Regards

    Biranchi

    Monday, October 21, 2019 8:09 AM
  • Be sure you enter the Content property on the send shape. I also recommend specifying the content type property like text/plain. Thanks, Ben

    If this answers your question, please use the "Answer" button to say so | Ben Cline

    Tuesday, October 22, 2019 9:31 PM
  • Hi, 

    Thanks a lot for your answer.

    Here is how my logic app looks like. I still don't see the content in Queue2(queuereceivemsgs). Am I still missing something here?

    Wednesday, October 23, 2019 10:43 AM
  • Try removing the Session id on the send shape. I usually do not set that field. I am wondering if it is confusing the send shape. 

    If this answers your question, please use the "Answer" button to say so | Ben Cline

    Thursday, October 24, 2019 8:30 PM
  • Hi Ben,

    Thanks a lot for the answer. Removing the Session id on the send shape worked for me.

    Regards

    Biranchi

    Friday, October 25, 2019 10:33 AM