I have been debugging a custom workflow activity for our CRM online instance. I have been debugging using Plugin profiler. I have been able to debug up until today fine. I unregistered the profiled activity and when I tried to profile it again I am getting the following error:
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Duplicate workflow activity group name: 'CSkills.CRM.LevyGrant.Document.Workflow (1.0.0.0) (Profiled)', activity name: 'CSkills.CRM.LevyGrant.Document.Workflow.CreateLetterAnnotation (Profiled)'.
Detail: <OrganizationServiceFault xmlns="schemas.microsoft.com/.../Contracts" xmlns:i="www.w3.org/.../XMLSchema-instance">
<ActivityId>9b6a171a-a4b1-4db7-a4b2-60c02e79f9c1</ActivityId>
<ErrorCode>-2147200995</ErrorCode>
<ErrorDetails xmlns:a="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>Duplicate workflow activity group name: 'CSkills.CRM.LevyGrant.Document.Workflow (1.0.0.0) (Profiled)', activity name: 'CSkills.CRM.LevyGrant.Document.Workflow.CreateLetterAnnotation (Profiled)'.</Message>
<Timestamp>2017-11-06T21:39:47.3696517Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault>
<ActivityId>9b6a171a-a4b1-4db7-a4b2-60c02e79f9c1</ActivityId>
<ErrorCode>-2147200995</ErrorCode>
<ErrorDetails xmlns:a="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>Duplicate workflow activity group name: 'CSkills.CRM.LevyGrant.Document.Workflow (1.0.0.0) (Profiled)', activity name: 'CSkills.CRM.LevyGrant.Document.Workflow.CreateLetterAnnotation (Profiled)'.</Message>
<Timestamp>2017-11-06T21:39:47.3696517Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault>
<ActivityId>9b6a171a-a4b1-4db7-a4b2-60c02e79f9c1</ActivityId>
<ErrorCode>-2147200995</ErrorCode>
<ErrorDetails xmlns:a="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>Duplicate workflow activity group name: 'CSkills.CRM.LevyGrant.Document.Workflow (1.0.0.0) (Profiled)', activity name: 'CSkills.CRM.LevyGrant.Document.Workflow.CreateLetterAnnotation (Profiled)'.</Message>
<Timestamp>2017-11-06T21:39:47.3696517Z</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" />
</InnerFault>
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at PluginProfiler.Library.ProfilerManagementUtility.CreateWorkflowAssembliesAndTypes(CrmServiceClient service, ActivityAssemblyCompilerConfiguration configuration, Dictionary`2 types, OptionSetValue isolationMode, DateTime lastModified, IEnumerable`1 mappedAssemblies)
at PluginProfiler.Library.ProfilerManagementUtility.InstrumentWorkflowSteps(CrmServiceClient service, Guid workflowId, String keyFileName, CustomActivityStep[] workflowSteps)
at PluginProfiler.Library.ProfilerManagementUtility.EnableWorkflow(CrmServiceClient service, String overrideKeyFileName, Guid workflowId, Boolean persistToEntity, String persistenceSessionKey, Boolean includeSecureInformation, Boolean isContextReplay, CustomActivityStep[] workflowSteps)
at Microsoft.Crm.Tools.PluginRegistration.CommonControls.ProfilerSettingsViewModel.btnOk_Click()
I have tried:
- removing the activity from my workflow
- removing assembly from the solution
- unregister the assembly using Plugin Registration tool
- delete plugin profiles
I can still see the activity (profiled) when I view available steps in my workflow (see screen shot below)
and also in the plugin registration tool when profiling workflow
Any ideas how I can stop this profiled activity step?
Thanks
Phil
*This post is locked for comments