BizTalk: Dynamic SMTP Port: Unknown Error Description

Posted by Leonid Ganeline on Geeks with Blogs See other posts from Geeks with Blogs or by Leonid Ganeline
Published on Fri, 12 Mar 2010 20:50:22 GMT Indexed on 2010/03/12 20:57 UTC
Read the original article Hit count: 335

Filed under:
Today I investigated one strange error working with Dynamic SMTP Port.
 
Event Type: Error
Event Source: BizTalk Server 2006
Event Category: BizTalk Server 2006
Event ID: 5754
Date: ********
Time: ********AM
User: N/A
Computer: ********
Description:
A message sent to adapter "SMTP" on send port "*********" with URI "mailto:********.com" is suspended.
Error details: Unknown Error Description 
MessageId:  {********}
InstanceID: {********}
 
My code was pretty simple and the source of the error was hidden somewhere inside it.
 
msg_MyMessage(SMTP.CC) = var_CC;
msg_MyMessage(SMTP.From) = var_From;
msg_MyMessage(SMTP.Subject) = var_Subject;
msg_MyMessage(SMTP.EmailBodyText) = var_Message;    // #1   
msg_MyMessage(SMTP.SMTPHost) = " localhost ";
msg_MyMessage(SMTP.SMTPAuthenticate) = 0;

When I added line #2, this frustrating error disappeared.
 
 msg_MyMessage(SMTP.EmailBodyTextCharset) = "UTF-8"; // #2

Conclusion:
If we use the SMTP.EmailBodyText property, we must set up the
SMTP.EmailBodyTextCharset property.

To me it looks like a bug in BizTalk. [Maybe it is "by design", but in this case give us a useful error text!!!]
And don't ask me how much time I've spent with this investigation.
 

© Geeks with Blogs or respective owner