0

I need to handle an application for the 2006 version.

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, xml, whatever) 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?

This is the error I would love to capture, together with the body of the message, if possible

Dijkgraaf
  • 11,049
  • 17
  • 42
  • 54
strongmmc
  • 137
  • 12

2 Answers2

0

Yes, it is possible. If you set up Failed Message Routing on this receive port, you can create a filter subscription in another FILE send port for ErrorReport.ErrorType == "FailedMessage". This send port can save the error report and the original message out to a file.

Alternatively, you can have an orchestration subscribe to these failed messages if you want to do any further processing with them (e.g. logging of the error details).

See this article for some help with that, or view the official MSDN documentation here.

Dan Toomey
  • 61
  • 5
  • Thank you for answering, i really appreciate it. – strongmmc Dec 06 '16 at 14:20
  • i tried it and i only obtain the original message, which is good but is half of what i wanted. I'm not sure ho to get the error message as well, though – strongmmc Dec 06 '16 at 14:21
  • You might need an orchestration then to subscribe to the failed message. Then you could extract the details out of the message context and write them where you want to. You could also do this (more efficiently) in a custom pipeline component... but I'm aware that you wanted to avoid this in your original post. – Dan Toomey Dec 06 '16 at 23:17
  • He @DanToomey can you Please provide Example of any that handle this error as we are also facing same Issue – Hardik Jan 18 '23 at 12:50
0

For later versions of BizTalk (Enterprise edition) you can install the ESB Toolkit and set up the The ESB Management Portal and Fault Message Viewer. This includes a BizTalk application that subscribes to failed messages and writes them to a databse where you can view both the message, the context properties of the message and the errors.

Dijkgraaf
  • 11,049
  • 17
  • 42
  • 54