Skip to main content

Notifications

Announcements

No record found.

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

 

  • Suggested answer
    RE: Deleting Failed AsyncOperations

    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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans