简体   繁体   中英

BizTalk - create log file for pipeline fault(There was a failure executing the receive pipeline)

Starting with this version, BizTalk can route fault messages, and that's pretty good. Let's say I'm receiving a badly-formatted positional txt file and a receive pipeline can't let the message get into the orchestration. I can see that between the 'Suspended Services Instances' I have my suspended service gone in error with its code and its pretty explicit description.

I would love to get all this data into a file (txt) and route it into a dedicate folder, without using custom pipeline components or other libraries, just BizTalk out of the box functionalities.

Is it all possible (to save exception in log file)?

在此处输入图像描述

It is My File BizTalk Orchestration.(Please let me know if anything need to change).

在此处输入图像描述 Also, if you provide any example of it will helpful as i am beginner in BizTalk .

Thanks & Regards.

Short answer: You need some custom components or the ESB Toolkit.

If you switched on routing for failed message on the Receive Port, you can create a send port which has the Filter ErrorReport.FailureCode Exists and all failed messages will go to this port. You can add additional filters to limit it to certain ports or other context properties.
The below example shows what it looks like. It also has an additional filter as this is the ESB Exception Management Framework Send Port, which is part of the ESB Toolkit. However just adding that filter will just send the original message, without all the error information. The Microsoft sample ESB Exception Management Framework includes a ESB Fault Processor Pipeline component to get the original message and error report, and to insert them into a DB.

在此处输入图像描述 在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM