Wednesday, February 22, 2023

System.InvalidOperationException Cannot stop DynamicsAxBatch service on computer Dynamics 365 for finance and operations


Basically, DynamicsAXBatch services is in stopping mode and stuck.

Open CMD with run as administrator and run the following command and to get PID

sc queryex DynamicsAxBatch

And kill the Process Id

Below is the query to kill the process:

taskkill /f /pid 5352

Now start the service again