web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

AIF calls - on what server are they executed?

(0) ShareShare
ReportReport
Posted on by

Hi Guys,

I have the following question about the execution of AIF service calls:

We have a company where we work together with a front office tool. The front office tool reads/writes/updates data in Ax through AIF Custom Services we created.

At this customer, we have 5 production servers. 2 user servers and 3 batch servers. The setup and deployment of the AIF Inbound Ports has been done on server PRD-01.

Now i was wondering if these service calls are always performed on server PRD-01?

The reason i ask:

Let's say we see an error in one of the service operations. PRD-01 is a user server, so we can easily fix the code on that server and generate an incremental CIL. The calls running on PRD-01 will be using this new code. The other servers will not be updated automatically and so they will have the old code.

*This post is locked for comments

I have the same question (0)
  • Mea_ Profile Picture
    60,286 on at

    Hi Ben Maes,

    I think you have incorrect approach to code release process that creates questions you would not have if you follow recommended deployment cycle. There is a "Deploying Customizations Across Microsoft Dynamics AX 2012 Environments" white paper technet.microsoft.com/.../hh292604.aspx explaining it in details.

    Generally speaking any code should go thought test environment and then should be deployed to prod. During prod deployment you need to stop all AOSes and preferably do model store deployment instead of xpo.

    Doing code changes directly in prod could lead to various issues ( you already know about some of them) and data corruption so is highly not recommended.

  • Ben Maes Profile Picture
    on at

    Hi,

    I understand your answer, but it's not really what i was asking. I know the proper way of deploying code, we do this on a regular basis with model store as you say, but that's not part of my question.

    I just want to know what AOS will execute my service operation. Will it always be the AOS that received the service call or can it be executed on another server as well? And if so, can we somehow trace what server has executed the service call? Like the way you can see in the batch history on what server the batch was run.

  • Verified answer
    Martin Dráb Profile Picture
    239,932 Most Valuable Professional on at

    It will use only one AOS, unless you configuring network load balancing.

    Nevertheless if you fix X++ and generate incremental CIL in production, you have a serious problem in your processes. You should develop code in a development environment, test it in a test environment and then deploy it to production using a proper deployment process. You can either use a pre-live environment, compile everything there and deploy the whole modelstore, or deploy individual models and then do full X++ and CIL compilation. The first approach is preferred, because it needs shorter time when the production environment is down. You have to turn off the whole AOS cluster in either case.

  • Ben Maes Profile Picture
    on at

    And that last part is the problem: we don't always have the time to do a complete build. That's why i was asking.

    I know it's not the preferred situation, but it's simply not always possible to do it "the right way". At the moment our customer is not yet using WCF load balancing so for the time being, we can handle it like this.

  • Martin Dráb Profile Picture
    239,932 Most Valuable Professional on at

    If you don't have time to build the application, you can't release it. Doing some hacks in the production environment endangers the integrity of your customer's ERP system - you must be very brave to want to voluntarily take responsibility for that.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Sanhthosh.Kumar.K Profile Picture

Sanhthosh.Kumar.K 2

#2
Raed Salah Bzour Profile Picture

Raed Salah Bzour 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans