During our BizTalk migration, we have encountered below error in the BizTalk administration console. This was the generic Error BizTalk Will throw when you are having any issues while receiving the message from Partner
Reason: Unable to cast object of type ‘Microsoft.BizTalk.Streaming.VirtualStream’ to type ‘System.IO.MemoryStream’.
Upton now we have below cases (Types of issues found for this error).
Case 1:
We thought it would be certificate error and we are checking partner certificate and our certificate.
But when we checked the event viewer, we are seeing the below error and interestingly we are not seeing this Error in our old server when the partner is sending the same file again and again
So we compared the EDI settings of same party in Old server with new server and we identified the issue
Duplicate check functionality is enabled in new server and it was disabled in old server for interchange settings
New Server Interchange Settings
Old Server Interchange Settings
So disabled the settings and issue got fixed.
Case 2:
We have below error in the event viewer for the error message (Unable to cast object of type ‘Microsoft.BizTalk.Streaming.VirtualStream’ to type ‘System.IO.MemoryStream’.) in BizTalk Administration console.
The AS2 Decoder failed processing when validating the MIC value returned in the MDN. Details of the MDN message are
as follows: AS2-From:"Vendor1" AS2-To:"MyCompany"
MessageID:"<1875777344.1081412822113762.JavaMail.root@cmb2bi59>" OriginalMessageID:"5fe1e2b4-2400-4536-9202-
749f8ce2a795"
Resolution:
when we are sending the As2 Message with one certificate and we are receiving the MDN from different certificate, we will get this error
Case 3:
Reporting-UA: Integration Server
Original-Recipient: rfc822; Vendor
Final-Recipient: rfc822; Vendor
Original-Message-ID: 8d6a7516-3ca4-49e0-b4c2-cfcbcbe41293
Disposition: automatic-action/MDN-sent-automatically; processed/error: insufficient-message-security
Resolution:
we will get the below error when we received the MDN from Partner with a certificate which was not there in the
other people if that certificate is not configured at party level
Regards,
Visit site: http://www.sqlblogging.com
Send an Email: sqlblogging


