ESB Exceptions

Prev Next

ESB Exceptions

The Enterprise Service Bus (ESB) is widely used in the Enterprise Application Integration (EAI) model to monitor and control the routing of messages between services. The ESB Exception Management Framework can be used in the server environment to capture the errors and exceptions in the ESB and notify the administrators to take necessary measures to fix the exceptions.

Let's consider a scenario, an application (SampleApplication) that manages the employee information. The application receives an employee request with information like employee ID, employee first name, employee last name, date of birth into the Orchestration. Based on the input, the orchestration calculates the age of the employee and sends a response to the endpoint. If the date of birth field is invalid, the orchestration will catch the error and generate the ESB fault message that will be published to the message box. When the fault message is generated, a lot of properties are added to the message such as fault message-id, fault description, fault severity, exception type, application name, service name, service instance id, and so on that will be displayed in the ESB Exception Management portal.

BizTalk360 picks up these exception messages and displays them in a nice grid view in the ESB Exception Management section. The exception message contains a fault id (or fault code) that will differ for different exception messages. The exception details section provides additional information on the exception error, but the description may/may not provide the entire information about the problem and the resolution to it. Therefore, the support person is forced to go beyond the provided fault description to analyze the cause of the issue and fix it. BizTalk360 provides an option to the support person to document the information about the fault code and tag it with the corresponding fault code.

Adding KB article for the ESB Exception fault code

  1. Log in to BizTalk360
  2. Click the Knowledge Base icon on the left side panel
  3. Click ESB Exceptions and click Add New to create a new KB article
  4. In the Add New Knowledge Base Article page, enter/select the following information
  • Article Title – Give a meaningful name for the article. The best practice would be to provide a name related to the fault code/fault message.
  • Fault Code – Enter the fault code for the KB article is created, say 2000.
  • Fault Description – Enter the detailed information for the KB Article in the rich text editor provided. The text can be formatted with the appropriate font and size selection, text styling, background colour, alignment control, block quotes, and can use the hyperlink, tables, special characters and print functionality. The text can be updated clearly in more structured way for more readability. 
  • Environment – Choose the environment for which the KB Article is to be displayed. If the default option (Choose Environment) is chosen, the KB article will be applied to all the environments
  • Category – Select the category of fault from the drop-down. The application will display the different categories based on the categories that have been listed in the ESB Exception Management portal.
  • Fault Severity – Select the severity count of the fault from the drop-down. The application will display the fault severity based on the values that have been listed in the ESB Exception Management portal
  • Application Name – Select the application name for which there was an exception during the processing
  • Error Type – Select the type of error that caused the exception
  • Error Text – This field can have the token from the description of the error message. This field is restricted to 250 characters
  • Click Save button.

Once created, the Knowledge Base article is associated with the specified ESB fault code. When the same fault occurs again, BizTalk360 displays the documented resolution, enabling support teams to diagnose and resolve ESB exceptions more quickly and consistently.

Create multiple articles for the same ESB Exception fault code

BizTalk360 allows support persons to create and tag multiple articles against the same fault code. The application uses the Best Match scenario to identify and display the KB article for the fault code. This depends on the additional options, known as tags, that the support person chooses while creating a KB article for the particular ESB exception fault code.

Managing Knowledge Base Articles

BizTalk360 provides options to Edit, Delete, and Clone Knowledge Base articles, allowing support teams to maintain and reuse documented knowledge efficiently.

  • The Edit option allows users to modify an existing Knowledge Base article. Support teams can update the article title, description any other mapped details, also when the resolution steps change or additional information becomes available. Any changes saved will be immediately reflected for future occurrences of the error.
  • The Delete option permanently removes the selected Knowledge Base article from BizTalk360. This is useful when an article is no longer relevant, incorrect, or duplicated. A confirmation prompt is displayed to prevent accidental deletion.
  • The Clone option allows users to create a copy of an existing Knowledge Base article. This is particularly useful when creating multiple articles for the same error code with slight variations for different Fault code. The cloned article retains all the original details, which can then be edited as required before saving.

These options help ensure that Knowledge Base articles remain accurate, up to date, and reusable, enabling faster and more consistent troubleshooting of service instance errors.

When creating multiple articles for the same fault code, follow the exact same steps as shown in "Adding a KB Article for the ESB Exception" section and select the appropriate tags (Environment, Category, Fault Severity, Application Name, Error Type, and Error Text) for the fault code. The tags will play the differentiator role to display the appropriate KB article