简体   繁体   中英

Enable Biztalk Failed Message Routing in Orchestration

In Biztalk ReceivePort, we can enable failed message routing such that error message will be routed to the message box for further processing.

But for orchestration, how to enable failed message routing, same as ReceivePort?

Thanks.

You would have to create your own ErrorReport message. Do this by publishing a message with ErrorReport.Type = "FailedMessage" and set the ErrorReport.Description to your exception message for example. ErrorReport.MessageType is also handy sometimes.

Be aware for the ErrorReport.Description, that you will only be able to put 255 characters in the context.

To promote something in your orchestration, do it like this:

YourMessageName(FILE.ReceivedFileName) = 'whatever.txt';

Be aware, to promote it, you would need put it in a correlation set, which would need to be used on your send shape

The Failed Message Routing feature is not available when publishing messages from an Orchestration.

Since you have complete control over the messages published from an Orchestration, any routing error would really be an application error and represent a case the Orchestration must handle.

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