Geeks With Blogs
Bryan Corazza for ( ; ; ) { BizTalk, Workflow, and .NET }

Recently I ran into an issue with the SOAP adapter giving me the error 'Failed to Serialize the Message Part 'Foo'' ever so often.  If I sent 20k messages through I was maybe getting about 100 messages suspended for this error.  Now I spend about an hour looking at the messages that failed and I realized the problem really had 'nothing' to do with BizTalk and it was a serialization issue.  I basically took the messages that failed and attempted to de-serialize them using a utility in .NET which is what the SOAP adapter is doing once the message is sent there.  Needless to say I was getting the same message but this time I could see what field was causing the issue.  It was a datetime type and it was blank.

So if your receiving this message please try to de-serialize the into a .NET type and see if you're getting the same error.  There is something either missing or wrong about the data in your message.  I just wish that the error message returning from BizTalk was a little more helpful here, like explaining what field is having the problem.  Unfortunately I think that's a .NET issue and not a BizTalk one.

Posted on Thursday, August 31, 2006 3:57 PM BizTalk 2006 | Back to top


Comments on this post: Failed to Serialize the Message Part

# re: Failed to Serialize the Message Part
Requesting Gravatar...
Hi I am passing an int value to my web service and getting a dataset returned but when I drop my xml file biztalk gives me the error Failed to Serialize message part into the type 32
Left by Rajeev on Mar 09, 2007 9:14 AM

# re: Failed to Serialize the Message Part
Requesting Gravatar...
Its somewhere in the serialization step that the error is occuring. Its usually around a missing values, dates or empty strings. Send me you email and I can send you a SOAP debugger/logger to help you out.
Left by Bryan Corazza on Mar 09, 2007 10:36 AM

# re: Failed to Serialize the Message Part
Requesting Gravatar...
Hey i am also getting same problem what u told can u help me to solve this and tell me how u did de-serialize the into a .NET and solved the problem

Thank u
Mahammadhusen
Left by Mahammadhusen on Jun 20, 2007 1:46 AM

# re: Failed to Serialize the Message Part
Requesting Gravatar...
Hi, I ran into the same problem and wonder if you can tell me where to get the .Net Utility to de-serialize the message. Thanks for your help in advance.

Stanley
Left by Stanley on Aug 14, 2007 3:57 PM

# re: Failed to Serialize the Message Part
Requesting Gravatar...
Hi:

I am getting a similar message:

Failed to serialize the message part "Variable" into the type "clsVariable" using namespace "http://www.blabla.com". Please ensure that the message part stream is created properly. ".

I am calling a webservice that accepts an instance of the class as a parameter. I tested this WebService with a Web Forms application and it works fine. I am getting the above error while executing the code autogenerated by BizTalk...


I appreciate any help, thank you!

Left by Elena on Aug 14, 2007 9:08 PM

# re: Failed to Serialize the Message Part
Requesting Gravatar...
Hi,

The serialization error is usually spawned when there is something wrong in the XML. Means the there is empty value in the int-datatype ja the datetime format is incorrect. Then when Biztalk is trying to serialize the message to SOAP adapter it will no get success answer due the reason that the SOAP adapter validates the constructed message.
Left by Fredrik Löfberg on May 28, 2008 6:55 AM

# re: Failed to Serialize the Message Part
Requesting Gravatar...
Hi there, would you mind sharing the name of the de-serialization tool? Thanks.
Left by Stanley on Dec 08, 2011 5:53 PM

Your comment:
 (will show your gravatar)
 


Copyright © Bryan Corazza | Powered by: GeeksWithBlogs.net | Join free