Home Page › Forums › BizTalk 2004 – BizTalk 2010 › SQL receive adapter problem
- This topic has 6 replies, 1 voice, and was last updated 8 years, 3 months ago by
community-content.
-
AuthorPosts
-
-
September 7, 2006 at 11:22 AM #15605
I am trying to develop a receive port using the SQL adaptor and a procedure call. I have gone through the steps to import the result schema and generate the port. When I run it I get a suspended message due to no subscribers found.
The actual suspended message looks correct except it has <?xml version="1.0" encoding="utf-16" ?> as the first element.
Running the message via a FILE adapter gives the same error, but if the utf-16 is removed or changed to utf-8 it works. Likewise the original message does not pass validation due to unicode errors. There seems to be some compatibility setting between BTS and SQL2005 that I am missing. Does anyone know what is forcing the utf-16 encoding? or why BTS does not like it?
thanks.
Doug
-
September 7, 2006 at 2:22 PM #15609
Are you using Visual Source Save?
-
September 15, 2006 at 7:26 AM #15696
I was copying the message into Notepad and saving it. This changes the format from unicode to ascii.
-
September 15, 2006 at 2:00 PM #15703
Not exactly sure why SQL2005 is pulling out UTF-16 but BizTalk defaults everything XML into UTF-8. Here's a post about how to change the encoding. We use a pipeline comp to change encoding all the time.
http://geekswithblogs.net/cyoung/archive/2004/07/04/7584.aspx
-
-
-
September 23, 2006 at 7:07 AM #15814
how do you have solved to create single messages out ouf the multipart document to send them to the sql server?
Regards Roberto
-
September 23, 2006 at 8:29 AM #15815
I would write a small .NET class that takes in an XLangMessage type and loops thru the message and extracts out the specific message parts that you wish to use. Something like:
(This was done off the top of my head so its probably not 100% correct.)
XmlDocument docPart = XLangMessage.Item("PartName").RetrieveAs(typeof(XmlDocument));
-
-
September 25, 2006 at 12:45 PM #15832
I would look at your Receive Port Location. Change the pipeline to XML data vs pass through and I bet that corrects the issue as I understand your initial post. I dont think it has anything to do with encoding type and such.
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.