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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to stop all batch processes for a particular time in Ax 2012

(0) ShareShare
ReportReport
Posted on by 781

Hello experts,

I want to stop all the batch processes running in ax for a particular time ( like for weekends and govt holidays i need stop the batch processes).

Thanks in advance
Johnkrish

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,156 Super User 2025 Season 2 on at

    Hi Johnkrish,

    This is not possible to configure. On those days you can disable the IsBatchServer setting on the AOS servers manually or stop the AOS services themselves.

    Why do you want to stop the batch processing in weekends and bank holidays? It is not harming the system to let it just run.

  • Daniele Ferraretto Profile Picture
    on at

    Hi you could adjust your batch check recurrence for avoid saturdays and sunday execution. As suggest in correct way from André you could stop the IsBatchServer and update to 0 or 1 this flag with a SQL procedures and scheduled it in your SQL enviroment.

    Pay attention to do before a trial in your test enviroment.

  • Johnkrish Profile Picture
    781 on at

    Thank you for the response,

    I have went through and thought of one solution. Is this correct ?

    SystemAdministration-->Setup-->System-->ServerConfiguration-->IsBatchServer

    SysServerConfig.EnableBatch.

    Can we use code(needed logic) in Info Class->startupPost() method and check and uncheck the checkobox IsBatchServer.

     

    Is this a correct way?but this way won't work if user is not closing the ax application continuously for weekend or during  holidays..can i write my logic some where else..can u guys suggest?

  • Suggested answer
    Martin Dráb Profile Picture
    237,976 Most Valuable Professional on at

    What if you simply set batch server schedule? Wouldn't it meet your requirements?

    Batch server schedule can be configured in System administration > Setup > System > Server configuration.

  • André Arnaud de Calavon Profile Picture
    301,156 Super User 2025 Season 2 on at

    The schedule option is only available in time units. This is valid for all days. There is no date planning. I have not heard back on my question why you would need to disable the batch processing during weekends. What is the idea behind this? Probably Daniele is correct to set a recurrence for some or all batch jobs to run only on business days.

  • Martin Dráb Profile Picture
    237,976 Most Valuable Professional on at

    You have a point about time, nevertheless it can be resolved. You can add extra fields to BatchServerConfig and modify BatchRun::getServerConfig() to take them into account.

    I would rather do that than changing IsBatchServer by some stored procedures, for example.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans