Asked by:
Cannot unregister a custom workflow activity

Question
-
Just not able to unregister a custom workflow activity using the plugin registration tool
The plugin is registered on the disk in the \mscrm\server\bin\assembly folder
->I've deleted all processes in my CRM application
->I've deleted all system jobs that are not in completed status
->I have all the reference dlls in the /assembly folder
->I've deleted the plugin and its steps using the solution GUI
->I'm restarting the MS Async service and the www service before I try to unregister
This is the error:
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: The PluginType(cbc4913c-ba60-4784-bb3c-2e791d8992bf) component cannot be deleted because it is referenced by 1 other components. For a list of referenced components, use the RetrieveDependenciesForDeleteRequest.
Detail: <OrganizationServiceFault xmlns="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ErrorCode>-2147160033</ErrorCode>
<ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
<KeyValuePairOfstringanyType>
<a:key>0</a:key>
<a:value i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">PluginType</a:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<a:key>1</a:key>
<a:value i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">cbc4913c-ba60-4784-bb3c-2e791d8992bf</a:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<a:key>2</a:key>
<a:value i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">1</a:value>
</KeyValuePairOfstringanyType>
</ErrorDetails>
<Message>The PluginType(cbc4913c-ba60-4784-bb3c-2e791d8992bf) component cannot be deleted because it is referenced by 1 other components. For a list of referenced components, use the RetrieveDependenciesForDeleteRequest.</Message>
<Timestamp>2014-01-24T14:27:21.7502Z</Timestamp>
<InnerFault>
<ErrorCode>-2147160033</ErrorCode>
<ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>The PluginType(cbc4913c-ba60-4784-bb3c-2e791d8992bf) component cannot be deleted because it is referenced by 1 other components. For a list of referenced components, use the RetrieveDependenciesForDeleteRequest.</Message>
<Timestamp>2014-01-24T14:27:21.7502Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<TraceText i:nil="true" />
</OrganizationServiceFault>
How can I remove/unregister/delete the custom workflow activity
Friday, January 24, 2014 2:29 PM
All replies
-
Hi,
the error is quite clear, there is still one component, write a small console application to execute the RetrieveDependenciesForDeleteRequest an check what is still using this custom activity
My blog: www.crmanswers.net - Rockstar 365 Profile
- Edited by Guido PreiteMVP Friday, January 24, 2014 2:49 PM
- Proposed as answer by Payman BiukaghazadehEditor Sunday, January 26, 2014 6:49 PM
Friday, January 24, 2014 2:48 PM -
you can use crm->setting-> customization->process
to delete or deactivate your workflow.
Hope this helps. ----------------------------------------------------------------------- Santosh Bhagat If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"
Saturday, January 25, 2014 4:31 AM -
Hi,
In addition to using the RetrieveDependanciesForDeleteRequest message, you should be able to open the solution and select the custom workflow assemblies, then click on the 'Show Dependencies' button. This will give you a list of things that depend on this component that you must remove before you can remove the assembly.
Hope this helps,
Scott
Scott Durow
Blog www.develop1.netFollow Me
Rockstar365
If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"- Proposed as answer by Payman BiukaghazadehEditor Sunday, January 26, 2014 6:49 PM
Sunday, January 26, 2014 4:24 PMAnswerer