Question

Hakan T on Tue, 14 Oct 2014 12:38:36


I have a simple itinerary with a subscription source, an xml one way bridge and blob destination. I publish messages to the topic which are picked up by the subscription. Unfortunately the messages are not processed by the bridge. The following error message can be seen in the BizTalk Services portal and tracking: “Data at the root level is invalid. Line 1, position 1.”. Source of the error is the [subscription source name]. Same error occurs if I change the bridge to a pass through.

Any ideas on how to start troubleshooting this?

Thank you.

Sponsored



Replies

Shailesh Agre on Tue, 14 Oct 2014 14:27:03


This is most likely happening because of improper content type.

Please look at the blog

http://blogs.msdn.com/b/mabs/archive/2014/10/14/test-the-bridges-post-messages-3-easy-tools-for-the-developers.aspx

to get "BizTalk Service Explorer" and push message directly to the bridge. Also using BizTalk Service Explorer you can debug the bridge.

Make sure to put proper Content Type

If proper content type is not provided, the messages delivery can fail. Here are a few forum posts that will help to make a choice of the correct Content Type based on the method that you use to post the message.

Regards,

Shailesh

la Cour on Wed, 15 Oct 2014 06:40:15


I think you are sending invalid XML through the Brigde.

Try changing to a PassThruBridge and make sure that content-type is "plain/text", and then examine what structure is sent though the Bridge.

Morten la Cour

HakTho on Thu, 16 Oct 2014 06:34:03


Maybe there is something I am missing here. How do I set the content type? I am posting the message to the topic with a Microsoft.ServiceBus.Messaging.TopicClient using the method Send(BrokeredMessage message). I create the BrokeredMessage using the constructor BrokeredMessage(object serializableObject).