Log Exception Pipeline Component
  • 21 Jan 2021
  • 1 Minute to read
  • Dark
    Light
  • PDF

Log Exception Pipeline Component

  • Dark
    Light
  • PDF

Article summary

Log Exception pipeline component helps users to log the exceptions in a pipeline component. This can be very beneficial when you have enabled the failed message routing in ports and have few send ports subscribing to them.

Usage

Use this pipeline component in either pre-assemble or encode stage of a send send pipeline.

image.png

Typically, the send port will have subscription to failed messages as shown below.
image.png

Properties

PropertyUsage
EnabledThis property is used to enable the functionality of this pipeline component. If the value is False, then pipeline component acts as a passthrough.
Consume MessageAfter logging the exception if you want to discard the message you can set this property to true. This ensure that message will not be passed to subsequent stages in the pipeline.
ErrorCodeError code can be hardcoded or can be configured to get the value from the message context.If you want to read the error code from message context please configure the property in below format.# Example: http://schemas.microsoft.com/BizTalk/2005/error-report#FailureCode
ExceptionDetailsException Details can be hardcoded or can be configured to get the value from the message context.If you want to read the Exception Details from message context please configure the property in below format. # http://schemas.microsoft.com/BizTalk/2005/error-report#Description
ExceptionTypeThis property is not used at the moment

Was this article helpful?