Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Unable to delete Recurring bulk delete systems jobs Crm Dynamics Version 1710 (9.0.2.2078) online - Cannot delete async operation unless it is in Completed state.

Posted on by 32

Hi, I tried to delete a recurring bulk delete system job but it generated an error, I tried with canceled, paused bulk delete but it generated the same error message

Any idea how to fix it?

Envelope xmlns:s="schemas.xmlsoap.org/.../envelope"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring xml:lang="en-US">Cannot delete async operation unless it is in Completed state.</faultstring><detail><OrganizationServiceFault xmlns="schemas.microsoft.com/.../Contracts" xmlns:i="www.w3.org/.../XMLSchema-instance"><ActivityId>ca4e5249-7e32-47d4-a0ec-71412c90d465</ActivityId><ErrorCode>-2147204758</ErrorCode><ErrorDetails xmlns:a="schemas.datacontract.org/.../System.Collections.Generic"><KeyValuePairOfstringanyType><a:key>ApiExceptionSourceKey</a:key><a:value i:type="b:string" xmlns:b="www.w3.org/.../XMLSchema">Plugin/Microsoft.Crm.ObjectModel.AsyncOperationService</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiOriginalExceptionKey</a:key><a:value i:type="b:string" xmlns:b="www.w3.org/.../XMLSchema">Microsoft.Crm.CrmException: Cannot delete async operation unless it is in Completed state. ---&gt; Microsoft.Crm.CrmException: Cannot delete async operation unless it is in Completed state.

at Microsoft.Crm.ObjectModel.AsyncOperationServiceInternal`1.Delete(BusinessEntityMoniker moniker, ExecutionContext context)
--- End of inner exception stack trace ---
at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.Pipeline.&lt;&gt;c__DisplayClass2_1.&lt;Execute&gt;b__0()</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiStepKey</a:key><a:value i:type="b:guid" xmlns:b="schemas.microsoft.com/.../Serialization">08435f97-02c8-11dc-9d6a-0019bbe16f50</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiDepthKey</a:key><a:value i:type="b:int" xmlns:b="www.w3.org/.../XMLSchema">1</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiActivityIdKey</a:key><a:value i:type="b:guid" xmlns:b="schemas.microsoft.com/.../Serialization">ca4e5249-7e32-47d4-a0ec-71412c90d465</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiPluginSolutionNameKey</a:key><a:value i:type="b:string" xmlns:b="www.w3.org/.../XMLSchema">System</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiStepSolutionNameKey</a:key><a:value i:type="b:string" xmlns:b="www.w3.org/.../XMLSchema">System</a:value></KeyValuePairOfstringanyType></ErrorDetails><Message>Cannot delete async operation unless it is in Completed state.</Message><Timestamp>2018-09-25T17:35:08.952651Z</Timestamp><ExceptionRetriable>false</ExceptionRetriable><ExceptionSource i:nil="true"/><InnerFault><ActivityId>ca4e5249-7e32-47d4-a0ec-71412c90d465</ActivityId><ErrorCode>-2147204758</ErrorCode><ErrorDetails xmlns:a="schemas.datacontract.org/.../System.Collections.Generic"/><Message>Cannot delete async operation unless it is in Completed state.</Message><Timestamp>2018-09-25T17:35:08.952651Z</Timestamp><ExceptionRetriable>false</ExceptionRetriable><ExceptionSource i:nil="true"/><InnerFault i:nil="true"/><OriginalException i:nil="true"/><TraceText i:nil="true"/></InnerFault><OriginalException i:nil="true"/><TraceText i:nil="true"/></OrganizationServiceFault></detail></s:Fault></s:Body></s:Envelope>

*This post is locked for comments

  • Suggested answer
    Dynamics365 Rocker Profile Picture
    Dynamics365 Rocker 7,755 on at
    RE: Unable to delete Recurring bulk delete systems jobs Crm Dynamics Version 1710 (9.0.2.2078) online - Cannot delete async operation unless it is in Completed state.

    You have to wait until it get complete.

  • Alice R Profile Picture
    Alice R 32 on at
    RE: Unable to delete Recurring bulk delete systems jobs Crm Dynamics Version 1710 (9.0.2.2078) online - Cannot delete async operation unless it is in Completed state.

    Hello, that will do

  • Alice R Profile Picture
    Alice R 32 on at
    RE: Unable to delete Recurring bulk delete systems jobs Crm Dynamics Version 1710 (9.0.2.2078) online - Cannot delete async operation unless it is in Completed state.

    Hi, the instance of that job is not in progress, it is canceled, and I trying deleting it from the view Recurring System Jobs.

    It seems that it is an error in the new version 9

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Unable to delete Recurring bulk delete systems jobs Crm Dynamics Version 1710 (9.0.2.2078) online - Cannot delete async operation unless it is in Completed state.

    Hi,

    Based on the error message, it appears that the instance of that job is still in progress so may be you can try delete after the execution. Also, I am assumining you are deleting it from the main view by changing the View to Recurrring System Jobs?

    Hope this helps.

  • Arun Vinoth Profile Picture
    Arun Vinoth 11,613 on at
    RE: Unable to delete Recurring bulk delete systems jobs Crm Dynamics Version 1710 (9.0.2.2078) online - Cannot delete async operation unless it is in Completed state.

    Probably MS support can assist you, raise a ticket with them.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans