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 CRM (Archived)

Restore deleted recurring system job (Bulk delete completed system jobs)

(0) ShareShare
ReportReport
Posted on by 97

A colleague has accidentally deleted the recurring system job Bulk Delete:"Delete Completed System Jobs".

The job still exists in our test organisation/environment. How do we restore this system job on our live environment?

Thanks

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hello Mohamed,

    Unfortunately you can not recover system jobs  data .When you delete any system jobs its basically hard delete from AsyncOperationBase table of CRM database. One possible way if you have old db backup and migrate those data if you are using on premise environment.

    I just tested in my local on premise environment.

  • MohamedIsmail Profile Picture
    97 on at

    Hello Goutam,

    Thank you, we are using on premise. Does that mean we can migrate the system job from a backup without restoring the whole database? Is there a tool that can do this? Sorry this is new to me.

    Thanks,

    Mohamed

  • Verified answer
    Daniel Wikell Profile Picture
    2,360 on at

    Hello Mohamed

    It sounds like you just want to have a recurring job with the same functionality back in the live Environment. By comparing with the job in the test Environment you should be able to just set up a new bulk deletion job and apply the same criteria. Set the recurrence of this job to be the same as before and you should have your job back. This will not be exactly identical to the deleted one in the sense that the job is now user owned and not system owned but I believe this should have no impact on the outcome as long as the user who sets up the new job is a system administrator.

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Although this is not supported  way to change directly in the table but you can do this without any issue I guess.  

    Sorry I have not tried just assuming following steps you can try, I am not concern about migrate primary GUID of the table -

    - Restore the old database in another database in same DB server .

    - Find out which data  has been deleted and need to migrate. Based on that you need to put where condition let's say created by or date something like this.

    - Prepare query like below

    INSERT INTO dbo.AsyncOperationBase (

       column1

       ,column2

       ,column3

       ,column4

       )

    SELECT column1

       ,column2

       ,column3

       ,column4

    FROM [reatoredbname].dbo.AsyncOperationBase

    Try to do it for one record first by providung  where condition  and check you can see the data in UI

    If everything is fine you may delete all the  data from your live DB apart from which has recently created compare to old DB backup and then migrate all the data  from back DB.

    Hope this helps.

  • MohamedIsmail Profile Picture
    97 on at

    Thank you Goutam,

    I appreciate your help. I'm going to try to avoid doing unsupported changes. We may need to find a workaround in another way. It may just not be possible to do in any supported way.

    Thanks again,

    Mohamed

  • MohamedIsmail Profile Picture
    97 on at

    Sorry I only saw the most recent response. The one where you suggested creating a new job sounds like the way to go.

    Thank you Goutam.

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans