Facing and getting this error msg during the registeration of the custom code activity in isloation mode sandbox while trying to registering it in "None" is working fine what I need to find the trace logs even though the tracing is enabled for all and after a huge search find-out on the on prem v9.1 what is logged on the trace logs is plugins and custom code activity which are registered on "Sandbox"
For the exception Details
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Exception retrieving custom activity info using SandboxPlugin - Unhandled exception:
Exception type: Microsoft.Crm.CrmException
Message: Unable to retrieve customActivityInfo using RetrieveCustomActivityInfoWithSandboxPlugin.
at Microsoft.Crm.Workflow.ObjectModel.CustomActivityInfoMetadataBase.GetCustomActivityInfo(ActivityInfo activityInfo, Int32 isolationMode, Guid pluginAssemblyId)
-- End stack trace --
Detail: <OrganizationServiceFault xmlns="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ActivityId>d804b910-cfcf-4a62-8cde-a1a32210a402</ActivityId>
<ErrorCode>-2147200934</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.PluginTypeService</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.CrmException: Exception retrieving custom activity info using SandboxPlugin - Unhandled exception:
Exception type: Microsoft.Crm.CrmException
Message: Unable to retrieve customActivityInfo using RetrieveCustomActivityInfoWithSandboxPlugin.
at Microsoft.Crm.Workflow.ObjectModel.CustomActivityInfoMetadataBase.GetCustomActivityInfo(ActivityInfo activityInfo, Int32 isolationMode, Guid pluginAssemblyId)
-- End stack trace --
---> Microsoft.Crm.CrmException: Exception retrieving custom activity info using SandboxPlugin - Unhandled exception:
Exception type: Microsoft.Crm.CrmException
Message: Unable to retrieve customActivityInfo using RetrieveCustomActivityInfoWithSandboxPlugin.
at Microsoft.Crm.Workflow.ObjectModel.CustomActivityInfoMetadataBase.GetCustomActivityInfo(ActivityInfo activityInfo, Int32 isolationMode, Guid pluginAssemblyId)
-- End stack trace --