Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Duplicate workflow activity group name - Error profiling workflow activity

Posted on by 190

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)

3438.Capture.JPG

and also in the plugin registration tool when profiling workflow

3438.Capture.JPG

Any ideas how I can stop this profiled activity step?

Thanks

Phil

*This post is locked for comments

  • fillcrocker Profile Picture
    fillcrocker 190 on at
    RE: Duplicate workflow activity group name - Error profiling workflow activity

    Was able to solve issue with Natraj's suggestion for stopping profiling workflow activity : https://dreamingincrm.com/2016/02/26/debugging-custom-workflow-assemblies/ 

    'Delete the weirdly named assembly (all guid name) from the “Default Solution“. This will be under the “Plugin Assemblies” node'

    Deleting that assembly did the trick

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans