web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Unexpected Error in Plugin Profiler

(1) ShareShare
ReportReport
Posted on by
I'm trying to debug my first plugin, and I think I messed up by unregistering the plugin while it was being profiled.  I think the profiler is still looking for the deleted assembly, but I don't know how to stop it.
 
I'm getting the following message:
 
Exception Message: Unexpected Exception in the Plug-in Profiler
ErrorCode: -2147220891
HexErrorCode: 0x80040265
ErrorDetails: 
    OperationStatus: 3
    SubErrorCode: -2146233088
    Plugin: 
        ExceptionFromPluginExecute: PluginProfiler.Plugins.ProfilerPlugin
        ExceptionRetriable: False
        ExceptionSource: PluginExecution
        OriginalException: PluginExecution
        PluginTrace: An exception occurred during the initialization of the Plug-in Profiler.
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Entity 'pluginassembly' With Id = 6f51f30e-3126-4765-8032-6030c4c2e399 Does Not Exist
<OrganizationServiceFault xmlns="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><ActivityId>06d8b2dd-aa9d-4163-8646-3b49b4bc84fe</ActivityId><ErrorCode>-2147220969</ErrorCode><ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"><KeyValuePairOfstringanyType><a:key>ApiExceptionSourceKey</a:key><a:value i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">Plugin/Microsoft.Crm.ObjectModel.PluginAssemblyService</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiSourceActivityKey</a:key><a:value i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema"/></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiExceptionOwnerKey</a:key><a:value i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">OwnershipNotFoundInExceptionOwnerSettings</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiOriginalExceptionKey</a:key><a:value i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">Microsoft.Crm.BusinessEntities.CrmObjectNotFoundException: Entity 'pluginassembly' With Id = 6f51f30e-3126-4765-8032-6030c4c2e399 Does Not Exist ---&gt; Microsoft.Crm.BusinessEntities.CrmObjectNotFoundException: Entity 'pluginassembly' With Id = 6f51f30e-3126-4765-8032-6030c4c2e399 Does Not Exist&#xD;
   at Microsoft.Crm.BusinessEntities.BusinessProcessObject.Retrieve(IBusinessEntityMoniker moniker, IEntityExpression entityExpression, ExecutionContext context, LocalizedEnumLabelCache localizedEnumLabelCache, DatabaseQueryTarget queryTarget)&#xD;
   at Microsoft.Crm.BusinessEntities.BusinessProcessObject.Retrieve(IBusinessEntityMoniker moniker, IEntityExpression entityExpression, ExecutionContext context)&#xD;
   at Microsoft.Crm.BusinessEntities.BusinessProcessObject.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context)&#xD;
   --- End of inner exception stack trace ---&#xD;
   at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)&#xD;
   at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)&#xD;
   at Microsoft.Crm.Extensibility.Pipeline.&lt;&gt;c__DisplayClass6_0.&lt;RunStep&gt;b__0()</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiStepKey</a:key><a:value i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">c8cbbb1b-ea3e-db11-86a7-000a3a5473e8</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiDepthKey</a:key><a:value i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">2</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiActivityIdKey</a:key><a:value i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">06d8b2dd-aa9d-4163-8646-3b49b4bc84fe</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiPluginSolutionNameKey</a:key><a:value i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">System</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiStepSolutionNameKey</a:key><a:value i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">System</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiExceptionCategory</a:key><a:value i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">ClientError</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiExceptionMessageName</a:key><a:value i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">ObjectDoesNotExist</a:value></KeyValuePairOfstringanyType><KeyValuePairOfstringanyType><a:key>ApiExceptionHttpStatusCode</a:key><a:value i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">404</a:value></KeyValuePairOfstringanyType></ErrorDetails><HelpLink>http://go.microsoft.com/fwlink/?LinkID=398563&amp;error=Microsoft.Crm.CrmException%3a80040217&amp;client=platform</HelpLink><Message>Entity 'pluginassembly' With Id = 6f51f30e-3126-4765-8032-6030c4c2e399 Does Not Exist</Message><Timestamp>2024-07-02T13:52:44</Timestamp><ExceptionRetriable>false</ExceptionRetriable><ExceptionSource>SdkClientError</ExceptionSource><InnerFault i:nil="true"/><OriginalException>System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Entity 'pluginassembly' With Id = 6f51f30e-3126-4765-8032-6030c4c2e399 Does Not Exist (Fault Detail is equal to Exception details: &#xD;
ErrorCode: 0x80040217&#xD;
Message: Entity 'pluginassembly' With Id = 6f51f30e-3126-4765-8032-6030c4c2e399 Does Not Exist&#xD;
I have the same question (0)
  • Ray Profile Picture
    1,537 on at
    To stop the profiling, you can try following ways:
    1. Click the "Uninstall Profiler" button in plugin registration tool.
    2. You can also try to uninstall the "PluginProfiler" solution. (remember to refresh the plugin registration tool)

    Update: I tested above solutions, all working fine.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Pallavi Phade Profile Picture

Pallavi Phade 96

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 69 Super User 2025 Season 2

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 43 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans