Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Set up batch to run on aos A and/or B

(0) ShareShare
ReportReport
Posted on by 90

Hi Martin,

I have two AOS instances, and batch group linked to both AOS, how can I make a batch to run on both AOS's, whenever AOS1 is down to run on AOS2 and vice versa, because it is only working on AOS2 despite that batch group is linked to both AOS.

*This post is locked for comments

  • MDeeb Profile Picture
    90 on at
    RE: Set up batch to run on aos A and/or B

    Thanks a lot again Nikolaos for clarifying the CIL, yes we were only generating CIL on one instance without turning off the other instance.

    Regards,

  • Verified answer
    nmaenpaa Profile Picture
    101,158 Moderator on at
    RE: Set up batch to run on aos A and/or B

    That's true, the batches won't work if you don't have any CIL generated. I wonder how you could have failed CIL in your prod environment but still were using it for actual operations. Definetely asking for trouble.

    Seems your environment maintenance process has some flaws if your one AOS didn't have functional CIL and the other did.

    When you deliver code to prod, you must shut down all AOSes. Assuming you use modelstore delivery (MS recommendation) all AOSes get the CIL from model database when they start. If you use some other delivery process, you must run full CIL generation on one AOS, and all other AOS instances must be switched off. After succesful CIL generation, you start other AOSes and they fetch the CIL from the model database.

    If you fail to do this, you face issues like the one you had. Or some AOSes run different CIL version than others.

  • MDeeb Profile Picture
    90 on at
    RE: Set up batch to run on aos A and/or B

    Thanks a lot Nikolaos, we had to do full CIL on AOS1 in order to run batch jobs on it, it was not running batches before of previous failed CIL.

    Regards,

  • Verified answer
    nmaenpaa Profile Picture
    101,158 Moderator on at
    RE: Set up batch to run on aos A and/or B

    All AOS servers that are configured as batch AOS will look for Waiting batch jobs that have such batch group that is configured for processing for that AOS.

    So nothing is routed from the first AOS to the second AOS. Both AOSes just look for batch jobs that they could start processing.

  • MDeeb Profile Picture
    90 on at
    RE: Set up batch to run on aos A and/or B

    Does it by default routes the batch job to second AOS incase the first is stopped and vice versa ?

    Thank you,

  • MDeeb Profile Picture
    90 on at
    RE: Set up batch to run on aos A and/or B

    Thanks a lot Nikolaos for your reply and for separating my thread, yes both instances are selected as batch servers.

    Regards,

  • Suggested answer
    nmaenpaa Profile Picture
    101,158 Moderator on at
    RE: AOS as Load Balancer and AOS dedicated for Batch process

    It seems you posted in a very old discussion and your question was not directly related to that discussion. I separated your question into it's own thread.

    Do you have batch processing enabled for both AOSes in Server Configuration form in System Administration module?

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics AX (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 100 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 48

#3
shanawaz davood basha Profile Picture

shanawaz davood basha 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans