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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

unable to start Dynamics AX Batch service on VM

(0) ShareShare
ReportReport
Posted on by 56

Hi team,

I am using the VM 10.0.24 and found today that suddenly unable to start Dynamics AX Batch service. and got below error

pastedimage1680972064171v1.png

So, I searched in google and found the below link

D365 FO Batch Management Service stopped, failed to start and throwing error 1064 – Dynamics 365 Fin Ops Technical Blog

They suggested "Then disabled the maintenance mode and the Batch management service was able to start without any issue. So enabled maintenance mode causing the issue to start the batch service."

I also follow this link

Maintenance mode - Finance & Operations | Dynamics 365 | Microsoft Learn

But not able to understand the command which needs to run in VM to disbale maintanance mode.

Pls give me more shed on thiis

thanks!

I have the same question (0)
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at

    Please check the event viewer for the logs. There you should find the exact issue.

  • @rp@n Profile Picture
    56 on at

    Hi Bharani

    Yes I checked in event viewer

    EventData

    AX is shutting down due to an error. Error initializing X++ event handlers. Please verify that application is deployed and compiled correctly. Error messages follow: An exception was encountered while initializing event handler initializer 'InitMethod1' on type 'Dynamics.AX.Application.EventHandler.EventHandlersInitializeClass, Dynamics.AX.PublicSector, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. Could not load file or assembly 'Dynamics.AX.ApplicationSuite, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. Exception details: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.Dynamics.Ax.Xpp.EventHandlerInitializationException: An exception was encountered while initializing event handler initializer 'InitMethod1' on type 'Dynamics.AX.Application.EventHandler.EventHandlersInitializeClass, Dynamics.AX.PublicSector, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Dynamics.AX.ApplicationSuite, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. at Dynamics.AX.Application.EventHandler.EventHandlersInitializeClass.InitMethod1() at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.<>c.<InitializeMetadataEventHandler>b__74_0(MethodInfo eventHandler) --- End of inner exception stack trace --- at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.<>c.<InitializeMetadataEventHandler>b__74_0(MethodInfo eventHandler) at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.InitializeMetadataEventHandler() --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.Dynamics.AX.AOS.StartupInternal(String[] Arguments)

    Kindly advise me pls

  • Suggested answer
    Komi Siabi Profile Picture
    13,190 Most Valuable Professional on at

    Hello @rp@n ,

    From the event log, there seems to be a model reference error.

    Build your custom model(s) with reference. If you get to errors, try to start the service.

    else, do a full build.

  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at

    Adding to Komi, do the get latest and build your custom model by stopping all services related to D365.

  • Suggested answer
    Mohit Rampal Profile Picture
    12,573 Moderator on at

    Hi, You can disable Maintenance mode from SQL server. Check this article and ensure it's disabled

    www.cloudfronts.com/.../

  • @rp@n Profile Picture
    56 on at

    Hi Mohit,

    Are you sure, is this happening because in my application maintenance mode is enabled? Because as per event handlers,  it seems Application foundation model issues.

    Kindly elaborate me please. Still my issues is not yet resolved

  • Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at

    We cannot confirm exact issue. You can go to SQL and check if maintainence mode is enabled or no. As per my knowledge if issue is with maintainence mode then you would get error in UI.

    As the error is due to model, have you done the changes which I suggested to you? Did you build those models?

  • @rp@n Profile Picture
    56 on at

    Hi Bharani,

    Yes , custom model with reference build is still in process...

    Once done, I will check and let you knoe

  • Suggested answer
    Mohit Rampal Profile Picture
    12,573 Moderator on at

    Hi, I'm not sure if its due to maintenance mode but since you mentioned in your question so suggested to ensure its not enabled otherwise you will definitely face this issue.

    www.theaxapta.com/.../quick-fix-batch-service-didnt-start.html

    Have you build all models and DB sync?

    I have faced this issue of batch job not restarting and fixed by killing process Id. Please check if this is applicable in your case.

    www.youtube.com/watch

  • Suggested answer
    Komi Siabi Profile Picture
    13,190 Most Valuable Professional on at

    Hi Arpan,

    You mentioned your VHD, which means only you are in charge. I doubt the system can automatically put itself on maintenance mode unless you run the SQL script.

    The event viewer shows reference error. Please do the full build and get back to us if it solved it or not.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 528 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 444

#3
Adis Profile Picture

Adis 256 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans