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 :
Microsoft Dynamics AX (Archived)

how to recover deleted batch jobs

(0) ShareShare
ReportReport
Posted on by 1,010

Hello All, Its really urgent. to stop some functionality, Unknowingly, I have deleted all batch jobs in ax 2012. Now i want to recover. Can anyone will tell me how to get it back ? Thanks in Advance.

*This post is locked for comments

  • Suggested answer
    Sohaib Cheema Profile Picture
    49,668 Super User 2026 Season 2 on at

    Once a record is deleted its gone after TTSCommit; that is a rule of Rational Databases.

    Now all you have in your hands is to re-run your jobs/classes/menus and re-add those into Batches.

    Definitely nobody knows how many Batch Jobs you were having may be for workflows, may be for reports generation, may be for some other processing.

  • André Arnaud de Calavon Profile Picture
    307,097 Super User 2026 Season 2 on at

    Hi D.K.S,

    If you have a backup of the database, you can try to restore the contents of the Batch and BatchJob tables. Please test this in a separate environment first.

    If this is not possible, you have to define the jobs yourself. Some jobs are created automatically when installing AX or when creating a legal entity. Those might be a bit cumbersome to restore.

    I wrote a blog in the past about some standard batch jobs: kaya-consulting.com/about-the-standard-batch-jobs-in-ax2012

  • Suggested answer
    Murugan Sivananantha Perumal Profile Picture
    10 on at

    Hi,

    You can use the below query to restore the deleted batch jobs completely;

    Restore the backup taken before deleting the jobs into a new database and then run the script below;

    Use AXCurrentDatabase;
    
    insert into batch
    select * from New_Rescue_Database.dbo.batch  
    
    insert into BATCHJOB  
    select * from New_Rescue_Databasedbo.BATCHJOB 
    
    insert into BATCHJOBALERTS  
    select * from New_Rescue_Database.dbo.BATCHJOBALERTS 

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 Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans