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 :
Finance | Project Operations, Human Resources, ...
Answered

How to cancel / delete System Batch Jobs?

(6) ShareShare
ReportReport
Posted on by 6,494
Hi,
There is a "Data cache refresh batch" system batch job, which is stuck in Executing and we can't cancel it.
It does not do anything, there is no Batch Job History. So it is just stuck in executing mode and we can't even create new Job.
If we try to do Change Status >> Canceling, it throws error "System task status cannot be changed".
If we click Remove reccurance, nothing happens.
If we go to Reccurance and set it to "End after 1", it throws "System Job with job id: xxx and end datetime: should be scheduled to run at least once every 7 day(s)".
 
If I go to batch tasks, the "Abort" button is greyed out.
 
I could not find anything helpfull online.
 
Any ideas?
 
Thanks
Categories:
I have the same question (0)
  • Subra Profile Picture
    1,247 on at
    Hi

    How long the batch has been in executing status?



     
  • Verified answer
    Alireza Eshaghzadeh Profile Picture
    15,200 Super User 2026 Season 1 on at
    Hi @Johnny

    The message “System task status cannot be changed” is expected in this case because “Data cache refresh batch” is a system batch job. Microsoft Learn also mentions that system jobs can’t be cancelled in the same way as normal user-created batch jobs.
    This batch job is related to the data cache framework (SysDataCacheRefreshServiceV2 class) used for workspace tiles/lists. In many environments, this job can appear as Executing because it is designed to keep the cache updated. So first I would confirm whether it is really stuck or just continuously running by design.

     
  • Suggested answer
    Shaluma Profile Picture
    137 on at
    Hi John,

    To help resolve batch jobs that are stuck in the Executing status, you can try the following steps:

    For Microsoft-hosted environments

    1. Open Environment monitoring in the Lifecycle Services (LCS) environment.

    2. Temporarily disable batch processing.

    3. Re-enable batch processing after a few moments.

    For Tier-1 / Development environments

    1. Restart IIS.

    2. Restart the Batch service/AOS.

    In many cases, restarting the batch server clears stuck batch records. Similar issues in AX/D365 environments have often been resolved by restarting the batch AOS before attempting to reset job statuses.

    Additional maintenance steps

    1. Navigate to System administration > Periodic tasks > Batch job history clean-up.

    2. Run the clean-up process, if available.

    Restart batch processing from the application

    1. Go to System administration > Setup > Server configuration.

    2. Disable batch processing for the active batch server and save the changes.

    3. Re-enable batch processing and save again.

    4. Verify whether the affected batch job moves out of the Executing status.

    If the issue started after a deployment or metadata change

    You may also want to perform a cache refresh by running the following URL:

    https://<yourenvironment>.operations.dynamics.com/?mi=SysClassRunner&cls=SysFlushData
    https://<yourenvironment>.operations.dynamics.com/?
    mi=sysclassrunner&cls=sysflushaod

    https://<yourenvironment>.operations.dynamics.com/?mi=sysclassrunner&cls=sysflushdictionary

    This refreshes the application-layer cache and can help resolve issues related to metadata or deployment changes.

    Please let us know the outcome after completing these steps, and we can assist further if the issue persists.

    If nothing works
    Please raise a Microsoft support ticket and provide:
    In most cases I've seen, Microsoft resolves this by clearing or resetting the orphaned batch record in the backend database because system jobs cannot be manually canceled from the UI.


    Is this Production, UAT/Sandbox, or Tier-1 Dev VM?

    Thanks!
    If you found it helpful, please consider marking it as Verified — it may be useful for others in the future!
     

     
  • André Arnaud de Calavon Profile Picture
    305,643 Super User 2026 Season 1 on at
    Hi Johnny,
     
    As suggested by Alireza, this batch job is designed to run continuously. You can verify this by looking at the coding of the class for this job.
     
  • Johnny Profile Picture
    6,494 on at
     
    Okay, but in our Prod environment we can actually see that there are records created in Batch-Job history.
    In UAT, there are no records in history.
    That makes me think that in UAT it is just stuck and does not really do anything.
     
    Also... I just checked, and in PROD there is 10 min reccurance set, in UAT it's 1 min.
  • André Arnaud de Calavon Profile Picture
    305,643 Super User 2026 Season 1 on at
    Hi Johnny,

    The scenario from your question seems to be related to the UAT? Was there a database restore done recently?
  • Johnny Profile Picture
    6,494 on at
    Yes it is UAT.
    No, we have this database for at least past 3 years.
    Maybe I'll just create MS ticket

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 681 Super User 2026 Season 1

#2
André Arnaud de Calavon Profile Picture

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

#3
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 579

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans