Microsoft BizTalk Server and Microsoft Dynamics AX Integration - Part 4.1 - Error Handling with BizTalk Administration
来源:互联网 发布:pic 单片机org指令 编辑:程序博客网 时间:2024/06/03 16:58
1. When error Event Source: “Microsoft Dynamics AX adapter”
a. Refer the Microsoft Dynamics AX Server Event Log for more details
b. Refer the Microsoft Dynamics AX Exceptions
2. When error Event Source: “Microsoft BizTalk Server” / “EAI.BizTalk”
a. This category of error is related to some error in Transformation, Orchestration or Transport.
b. Refer the BizTalk Administration Console for more details.
Microsoft BizTalk Server
(Event Source: “Microsoft BizTalk Server” / “EAI.BizTalk”)
This section provides the information on the exceptions that gets logged by BizTalk in case of erroneous conditions for Microsoft Dynamics AX interfaces.
All the Exceptions that occur in Microsoft BizTalk Server are logged in Event Log of the BizTalk Server machine. These exceptions are logged on the Machine based upon the Host Instance configuration.
Apart from the Error / Detailed exception the Message / Orchestration also gets “SUSPENDED” as either Resume-able or Non-Resume able state based upon the category and nature of the Exception.
The following sections detail the steps to be followed in case the error Event Source is “Microsoft BizTalk Server” / “EAI.BizTalk”.
1. Error Handling for data being sent to Microsoft Dynamics AX from BizTalk Server
1. Error occurs in the Interface which sends data to Microsoft Dynamics AX.
a. Case I: If the error occurs while transforming the data received from the Source Systems into Canonical Message.
i. In this case the message would get suspended.
ii. The suspended messages can be retrieved using Microsoft BizTalk Server Administration Console.
iii. If the message needs to be replayed without any correction and is resume-able, then right-click click on the Suspended Message and click on “Resume Instance”.
iv. If the message needs to be corrected, then the data needs to be altered in Source System and reposted to BizTalk.
b. Case 2: If the error occurs after the data has been transformed into the Canonical
i. The Interface would output / dump the Canonical Message to a configured location as per the Send Error Port.
ii. After correcting the issue in the Canonical Message the file can be replayed using the configured Error Replay folder (check under “EnterpriseShared” BizTalk Application)
iii. Rename the Canonical as “ForInterfacePopulateVendorInfoToDynamicsAX.xml” and drop the File at above configured location (“C:/Project/ErrorReplay” folder). Microsoft BizTalk Server would route the corrected canonical to the right Interface and perform the required transformations.
2. Error Handling for data being received from Microsoft Dynamics AX into BizTalk Server
1. Error occurs in the Interface which receives data from Microsoft Dynamics AX.
a. Case I: If the error occurs while transforming the data received from the Microsoft Dynamics AX.
i. In this case the message would get suspended.
ii. The suspended messages can be retrieved using Microsoft BizTalk Server Administration Console.
iii. If the message needs to be replayed without any correction and is resume-able, then right-click click on the Suspended Message, and click “Resume Instance”.
iv. If the message needs to be corrected, then the data needs to be altered in Microsoft Dynamics AX and reposted (refer Section - Repost Messages)
b. Case 2: If the error occurs after the data received from the Microsoft Dynamics AX has been transformed into the Canonical (for Interface with Orchestration).
i. The Interface would output / dump the Canonical Message to a configured location as per the Send Error Port.
For example an interface which sends Invoice Information to Oracle. In case of BizTalk Error the Canonical XML or the message is outputted to “C:/Project/Error/IPublishInvoiceOnError/%MessageID%.xml”
ii. After correcting the issue in the Canonical Message the file can be replayed using the configured Error Replay folder (check under “EnterpriseShared” BizTalk Application)
iii. Rename the Canonical as “ForInterfacePublishInvoice.xml” and drop the File at above configured location (“C:/Project/ErrorReplay” folder). Microsoft BizTalk Server would route the corrected canonical to the right Interface and perform the required transformations.
b. Case 3: If the error occurs after the data received from the Microsoft Dynamics AX has been transformed into the Canonical (for Interface without Orchestration).
i. In this case the message would get suspended.
ii. The suspended messages can be retrieved using Microsoft BizTalk Server Administration Console.
iii. If the message needs to be replayed without any correction and is resume-able, then right-click click on the Suspended Message, and click on “Resume Instance”.
iv. If the message needs to be corrected then double click on any Suspended Message
v. Go to “Messages” tab.
vi. Double Click on the Message.
vii. Click on Body and copy the Message and store it on the Hard disk.
viii. Correct the message and rename the file as per the Interface (refer the Design Document for the corresponding Interface for the same)
ix. Drop the file at above configured location (“C:/Project/ErrorReplay” folder). Microsoft BizTalk Server would route the corrected canonical to the right Interface and perform the required transformations.
This explains what all can be done on BizTalk side in case there are issues related to the Dynamics AX port connection. In my next port I will describe how we can do the error handling on Dynamics AX – the message was successfully sent to Dynamics AX queue but failed to perform the required action.
- Microsoft BizTalk Server and Microsoft Dynamics AX Integration - Part 4.1 - Error Handling with BizTalk Administration
- Microsoft BizTalk Server and Microsoft Dynamics AX Integration - Part 1 - Configuring Microsoft Dynamics AX – Application Integr
- BizTalk and Dynamics CRM Integration
- Microsoft BizTalk Server 2004 Unleashed
- Customizing a Microsoft Dynamics AX 2012 and Microsoft Dynamics CRM 2011 Integration
- Microsoft Biztalk 2004 vs IBM WebSphere Business Integration Server Foundation 5.1
- Microsoft Dynamics AX Sumary
- Microsoft Dynamics AX 2012
- Error:Microsoft.Dynamics.Ax.Xpp.InfoException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.InfoExce
- 借助 Microsoft BizTalk Server 2000 编制各种业务过程
- 在Windows XP中安装/配置Microsoft BizTalk Server 2006
- Periodic Processing in Microsoft Dynamics AX, Part II
- Microsoft Dynamics AX API - Part 3 "book of orders"
- Microsoft Dynamics AX API -Part 1 "Creating Jobs"
- Microsoft Dynamics AX API - Part 2 "Creating Purchase Orders"
- Microsoft Dynamics AX API - Part 4 "Book of Orders"
- Inside.Microsoft.Dynamics.AX.4.0
- Microsoft Dynamics AX 介绍[转]
- 图文]MPEG-2压缩编码技术原理应用(九)
- 我的任务
- ASP.NET - FileUpload Web 服务器控件概述(上)
- 点阵字库结构以及点阵字显示的实现原理
- 特殊的运算符重载-----类型转换运算符重载
- Microsoft BizTalk Server and Microsoft Dynamics AX Integration - Part 4.1 - Error Handling with BizTalk Administration
- CGLIB简介
- JDK 与 JRE的区别(转)
- 智慧地球:奥巴马的新战略?
- ASP.NET - FileUpload Web 服务器控件概述(下)
- C++剪切板操作
- 搜狗云输入法For Linux桌面,不局限于浏览器内使用! #输入法 #iBus #搜狗
- SpringSide 3.1.8 兄瓦弟玉版发布
- SpringSide 3.2.1 寒冬日志版发布