Showing posts with label AX BizTalk Adapter. Show all posts
Showing posts with label AX BizTalk Adapter. Show all posts

Monday, January 26, 2009

Microsoft Dynamics AX 2009 AIF BizTalk Adapter Configuration White Paper

Finally Microsoft has released a White paper explaining how to configure AIF together with the AX 2009 BizTalk adapter! You can find it here.

This documentation is clear and right to the point compared to the corresponding White paper for AX 4 that is all we have had available until now. It also touches the necessary batch jobs for supporting the out- and inbound message flow (async/sync).

Well done Microsoft; let's hope for more useful and formal documentation for AX 2009! This will avoid a lot of R&D activities and increase the quality of the product. We also need best practise documentation outside the scope of the compiler :-)

Monday, December 8, 2008

Experiences with the AX BizTalk Adapter

We have now encountered our first issue with the AX 2009 BizTalk Adapter. I will try not to go into every detail, but instead focus on the principal guidelines.

#1 If you experience a warning in the eventlog (application), Event ID 110 on the BizTalk Server saying "An X++ exception has occurred. Unable to lock resource channel '<channel name>'" (see sample below), I would suggest to look at how you have defined channels, action policies, document services etc. with regards to what is defined in the different company accounts since this can in fact lead to conflicts. We first related this to installing AX 2009 SP1 since it was the only change recorded in the same time frame and we didn't see this while we worked with the RTM release. The solution was to clean up in the AIF configuration using the AX client, but the cause is at the time beeing not known (it could be SP1, but that's only a theory at the time beeing).
























Update 2008/12/17:
After looking into the details, I also noticed a change of the warning logged by BizTalk for the same issue. Sample of the warning logged initially (figure 1) and a new version of the same message (figure 2) is shown below. I guess that something changed in SP1 and that the problem can be related to a required reboot of the BizTalk Server after applying AX 2009 SP1 (not logged or notifyed by the installer).


#2 Disparsed documentation. The documentstion for AX 2009 is quite good for AIF configuration, but is's very sparse when you are looking for details about the configuration of the transport properties in BizTalk (Visual Studio). If you want to understand the difference between the various authentication types, you have to look up the corresponding documentation for AX 4. At least this was where I found the answers to my general questions.

Wednesday, October 15, 2008

AX 2009 BizTalk Adapter

I recently did my first experiences with installing the AX 2009 BizTalk Adapter. "As usual" some discoveries were done, but this time it was more related to my less than minor knowledge of BizTalk...

After the BizTalk Server 2006 R2 Standard Edition (BT) was installed and verified, I went away installing the adapter "by the book" (that's the Installation Guide and the Server and Database Administration Guide). The documentation doesn't really contain a lot of information for BT newbie’s like me and after Googling about the error message I received, it seems like several people has stumbled across this one both for AX 4 and AX 2009. Surprisingly no solution was given and I thought this was a good opportunity to share my experiences.

As mentioned I went away installing the BizTalk adapter (custom installation, check the BizTalk adapter which not surprisingly also checks the .NET Business Connector). I then entered the necessary information the installation wizard asked for and hit the button labeled "Install". After some minutes watching the progress bar for installation of AX Components, I noticed the progress bar doing a "negative" progress followed by a summary saying "Setup was not completed" with a red square in front of both .NET Business Connector and BizTalk adapter. Ok, as normal open the log file and look for errors... Scrolling through the log file I noticed that the .NET Business Connector installed just fine. After some more scrolling down, I found the following error message: "An error occurred during the BizTalk adapter install custom action step within the Microsoft Dynamics AX components installer. For details, see the previous messages in the log. >>Install: BizTalk Adapter registration failed: Access denied". Being under some pressure getting the task done, I though "Oh no, not another day of hunting down a resolution". As mentioned I goggled about the message in bold above and I found several hits to similar experiences, but without a solution.

So my other really good friend in my professional life - the Event log - was my next stop. After filtering the event log - application, I found some warnings with source ENTSSO replicating the Access denied message. This is in my mind always a good indication and I then read a little bit about this on Microsoft TechNet. ENTSSO is short for Enterprise Single Sign On and this service is a vital part of the security mechanism in BizTalk Server with regards to authentication. After reading some more, I decided to open the Microsoft Single Sign On Admin Console. At the end of the summary saying Errors, I once again saw the "Access denied" message under the category RPC. Then I was "bold enough" to add my installation user to the security group called SSO Administrators. Reopened the SSO Admin Console and the RPC error was gone!

I also added the installation user to the BizTalk Administrators security group (required to add new adapters). After doing a new installation of the BizTalk adapter, everything went as expected and the log file looked just fine. Checking inside the BizTalk Admin Console, I found the adapter listed as a resource under "Application.1" (the default application in BizTalk).

To summarize this Blog entry, you have to understand some of the basics of BizTalk before installing the BizTalk adapter for AX 2009 (and also AX 4 as far as I can understand). If this is something Microsoft should mention in the documentation or not, is really open for discussion. As far as I know, they are working on some kind of detailed information right now and maybe this will be included. But all in all, this is another example of the increased demand for broad technical knowledge to install every component available in AX 2009. In my opinion it's a new ballgame compared to previous versions of this packaged application from Microsoft.

We will carry on the next days trying to get AX to communicate with BizTalk utilizing Application Intergration Framework (AIF) and I expect to be able to share some information from this journy quite soon.

So long!