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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Deleting Failed AsyncOperations

(0) ShareShare
ReportReport
Posted on by 10

I got a set of system jobs that are locked in 'In Progress'.

After investigation, I found article that refer the issue to "AsyncOperationBase table’s size" may make CRM asynchronous services can begin to show signs of degradation.

according to MS article there 

https://support.microsoft.com/en-us/help/968520/performance-is-slow-if-the-asyncoperationbase-table-becomes-too-large

it's recommended to do the following

Make sure that only the following Async operation types are deleted if the state code of the types is 3 and the status code of the types is 30 or 32:

  • Workflow Expansion Task (1)
  • Collect SQM data (9)
  • PersistMatchCode (12)
  • FullTextCatalogIndex (25)
  • UpdateContractStates (27)
  • Workflow (10)

After making queries on the Asyncoperation table I found out that only rows count of OperationType = Workflow (10) and status code = failed (31)

exceeds 1,2 Million records considering that total records of Asyncoperation table is 2.5 Million records .

as a result, I see that I should include the failed jobs into this query

"Make sure that only the following Async operation types are deleted if the state code of the types is 3 and the status code of the types is 30 or 32"

to be 

Make sure that only the following Async operation types are deleted if the state code of the types is 3 and the status code of the types is 30 or 31 or 32 "

I want to know :-

- Does deleting failed system jobs from Asyncoperation table have any bad impact on the system ?

- Is there any alternative method to delete those jobs using CRM UI  "Bulk Delete jobs"  instead of running SQL queries on database

Regards

 

I have the same question (0)
  • Suggested answer
    Ankit Sabharwal Profile Picture
    Microsoft Employee on at

    Hy Partner,

    Hope this post finds you well.

    When you want to clear a large number from AsyncOperationBase table, make sure you do in off business hours. It will help platform to accommodate all resources of async service to do this operation. In addition to it, if possible pause all other data management jobs and let this be cleared.

    Deleting failed system jobs won't have bad impact on the system, but if number is huge , you need to take care as it should not be done in business hours, as it might impact the performance of the system.

    It can also be deleted through Bulk Delete Records jobs. You can schedule a job choosing system job as an entity and provide the filter criteria for the same and proceed.

    Hope this helps.

    Best regards,

    Ankit

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

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 > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Subra Profile Picture

Subra 150

#2
11manish Profile Picture

11manish 102

#3
André Arnaud de Calavon Profile Picture

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

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans