Click here to Skip to main content
15,891,657 members
Articles / Enterprise

How to Generate ESB Exceptions in BizTalk 2013

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
4 Oct 2014CPOL 7.1K  
How to generate ESB exceptions in BizTalk 2013
  1. Install Microsoft BizTalk ESB ToolKit

    Untitled

  2. Open ESB Configuration Tool from Program Files with Administrative privileges.

    Untitled

  3. Enter Database server name where BizTalk has been configured. Provide IIS Web Services username and password.
  4. Go to ESB BizTalk Applications and Enable ESB Core Component in BizTalk Server. Enabling this BizTalk configuration tool will create Microsoft.Practices.ESB application for handling ESB exceptions generated by BizTalk application.

    Untitled

  5. In orchestration, add two references:
    • Microsoft.Practices.ESB.ExceptionHandling
    • Microsoft.Practices.ESB.ExceptionHandling.Schemas.Faults
  6. In Exception block of orchestration, assign application specific values to FailureCategory, FaultDescription, FaultSeverity and FaultCode of FaultMessage
    C#
    FaultMessage = Microsoft.Practices.ESB.ExceptionHandling.ExceptionMgmt.CreateFaultMessage();
    FaultMessage.FailureCategory = "";
    FaultMessage.FaultDescription = ex.Message;
    FaultMessage.FaultSeverity = Microsoft.Practices.ESB.ExceptionHandling.FaultSeverity.Severe;
    FaultMessage.FaultCode=" ";
    Microsoft.Practices.ESB.ExceptionHandling.ExceptionMgmt.AddMessage(FaultMessage, msg);
  7. If ESB Management Console is configured on your machine, then you will be able to see the fault message in console. Otherwise, check the fault message in Exception Database.

    Untitled

  8. Untitled

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
India India
my name is Tanmoy Sarkar. I am currently working as a BizTalk developer.

Comments and Discussions

 
-- There are no messages in this forum --