Mapping Phase (Recoverable Interchange Processing)
By default, when a message in an interchange fails at the mapping phase of a receive port, the entire interchange is suspended. You can change this behavior by adding a property named BTS.SuspendMessageOnMappingFailure to the message context, and by setting the value of the context property to True
from a pipeline component. When this property is set to True
, the end point manager places the message that failed during mapping in the suspended queue and continues to process remaining messages in the interchange.
The following code sets the value of the SuspendMessageOnMappingFailure property to True.
public IBaseMessage Execute(IPipelineContext pc, IBaseMessage inmsg)
{
bool bSuspend = true;
inmsg.Context.Write("SuspendMessageOnMappingFailure", "http://schemas.microsoft.com/BizTalk/2003/system-properties", bSuspend);
…
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for