FIX: "An error was encountered when attempting to generate an AS2 status report. Error: The specified content type is invalid" error message when you receive an AS2 message in BizTalk Server 2006 R2

Article translations Article translations
Article ID: 2219019 - View products that this article applies to.
Expand all | Collapse all

SYMPTOMS

Consider the following scenario:
  • You use Microsoft BizTalk Server 2006 R2 to receive AS2 messages from a trading partner and to then send Message Disposition Notification (MDN) messages back to the trading partner. 
  • You click to select the Activate AS2 Reporting check box on the general AS2 properties page for the trading partner.
  • You receive an AS2 message from the trading partner. The message contains a Carriage Return Line Feed (CRLF) in the AS2 Content-Type field of the HTTP header. For example, you receive an AS2 Content-Type field that resembles the following:

    Content-Type: application/edi-x12;
    name=from_XYZ_to_ABC
  • BizTalk Server sends an MDN message back to the trading partner successfully.
In this scenario, you cannot find the message from the AS2 Message and Correlated MDN Status Report in BizTalk Server Administration. Additionally, you receive the following error message in the Application log:

Event ID 4112 :

System.FormatException: The specified content type is invalid.
at System.Net.Mime.ContentType.ParseValue()
at System.Net.Mime.ContentType..ctor(String contentType)
at Microsoft.BizTalk.EdiInt.Reporting.AS2MessageActivity.ValidateParameters()
at Microsoft.BizTalk.EdiInt.Reporting.AS2MessageActivity.Create()

Event ID 8132 :

An error was encountered when attempting to generate an AS2 status report. Error: The specified content type is invalid.

Notes
  • This issue occurs even if you enable the Unfold HTTP headers AS2 property for the trading partner. The Unfold HTTP headers AS2 property enables BizTalk Server to unfold  HTTP content-type headers into a single line.
  • The issue typically occurs when the trading partner uses a third-party AS2 application that wraps the HTTP header of the AS2 messages when the header exceeds a specified length.

RESOLUTION

The hotfix that resolves this problem is included in cumulative update package 2 for BizTalk Server 2006 R2 Service Pack 1.

 For more information about how to obtain the cumulative update package, click the following article number to view the article in the Microsoft Knowledge Base:

2211420 Cumulative update package 2 for BizTalk Server 2006 R2 Service Pack 1

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

REFERENCES

For more information, visit the following web sites:For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates
For more information about BizTalk Server hotfixes, click the following article number to view the article in the Microsoft Knowledge Base:
2003907 Information about BizTalk Server hotfixes


For more information about the list of Microsoft BizTalk Server hot fixes that are included in BizTalk Server 2006 R2 Service Pack 1, click the following article number to view the article in the Microsoft Knowledge Base:
974563 List of Microsoft BizTalk Server hot fixes that are included in BizTalk Server 2006 R2 Service Pack 1

Properties

Article ID: 2219019 - Last Review: June 30, 2010 - Revision: 1.0
APPLIES TO
  • Microsoft BizTalk Server 2006 R2 Developer Edition
  • Microsoft BizTalk Accelerator for RosettaNet 1.0 Enterprise Edition
  • Microsoft BizTalk Server 2006 R2 Enterprise Edition
  • Microsoft BizTalk Server 2006 R2 Standard Edition
Keywords: 
kbautohotfix kbqfe kbhotfixserver kbfix KB2219019

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com