I have an application which is deployed and running . We have Maps over receive ports. Now we have a requirement to track the error and send an email in case if any message get failed at port while mapping/transformation. So we need to build an orchestration which continously poll the event viewer to check the error and in the case of error it will send the email to concern person. How can i poll the event viewer by orchestration to get the error ? Please help!!! ANSWER: An easier option may be to use Failed Message Routing You set "Enable routing for failed messages" on the Receive Port. The you can have an orchestration with a direct bound port and a receive shape filter of ErrorReport.ReceivePortName == "<Your receive port name>" or An orchestration with a specify later port, that will be bound to your receive port and a receive shape filter of ErrorReport.ErrorType == "FailedMessage"
This way your new orchestration will receive any message that fails, including the entire content of the message. The message will not be suspended, so if you need to resume or replay the message you will need to save it somewhere. y
Proposed As Answer bySteef-Jan WiggersMVP, Moder