Hi,
in my solution i've developed some plugin and installed into CRM 2016 Online.
All fine and done while CRM version was 2016 (TEST and PROD environments).
Now TEST environment CRM is upgraded into CRM 365 Online and one plugin don't work.
My Production entironment still working.
How can I fix the problem?
This is the error message:
System.Xml.XmlException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #8AFEE774
and this is the error detail:
Plugin Trace: [CRM.Plugin.HU: CRM.Plugin.HU.CampaignStatusChanged] [6b6dc950-3315-e711-80f0-c4346bacde44: CRM.Plugin.HU.CampaignStatusChanged: Update of campaign] Error Message: Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.Xml.XmlException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #8AFEE774 Detail: <OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts"> <ActivityId>f2366a6a-a8ef-4c94-ba1a-e7321dcbfe66</ActivityId> <ErrorCode>-2147220970</ErrorCode> <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" /> <Message>System.Xml.XmlException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #8AFEE774</Message> <Timestamp>2017-05-18T15:54:37.2756439Z</Timestamp> <ExceptionRetriable>true</ExceptionRetriable> <ExceptionSource>PluginExecution</ExceptionSource> <InnerFault i:nil="true" /> <OriginalException>System.Reflection.TargetInvocationException at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.Crm.Sandbox.SandboxAppDomainHelper.CreateSandboxCodeUnit(ConstructorInfo constructorInfo, Object[] args, String typeName) at Microsoft.Crm.Sandbox.SandboxAppDomainHelper.Execute(IOrganizationServiceFactory organizationServiceFactory, Dictionary`2 sandboxServices, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, IPluginExecutionContext requestContext, Boolean enablePluginStackTrace, Boolean chaosFailAppDomain) at Microsoft.Crm.Sandbox.SandboxAppDomainHelper.Execute(IOrganizationServiceFactory organizationServiceFactory, Dictionary`2 sandboxServices, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, IPluginExecutionContext requestContext, Boolean enablePluginStackTrace, Boolean chaosFailAppDomain) at Microsoft.Crm.Sandbox.SandboxWorker.Execute(SandboxCallInfo callInfo, SandboxPluginExecutionContext requestContext, Guid pluginAssemblyId, Int32 sourceHash, String assemblyName, Guid pluginTypeId, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, SandboxRequestCounter& workerCounter, Boolean returnTraceInfo)</OriginalException> <TraceText> [CRM.Plugin.HU: CRM.Plugin.HU.CampaignStatusChanged] [6b6dc950-3315-e711-80f0-c4346bacde44: CRM.Plugin.HU.CampaignStatusChanged: Update of campaign] </TraceText> </OrganizationServiceFault>
*This post is locked for comments
Hi Badrinath,
I've performed your suggestion and now plugin work fine.
thx
Thanks for the tip, Badrinath. Will definitely it out and rebuild the plugin code.
This is a generic exception error in CRM and from the trace nothing can be figured out. If you say it is failing during activation then I will suggest you to rebuild the plugin code and register again. Before that you need to delete/unregister the existing plugin.
Hi Guido,
my Plugin never start in CRM 365, while in CRM 2016 always start without any bugs.
Into code of plugin there are many trace, but the problem is that plugin crash on activation, how you can see in StackTrace.
Anyway, where can I put my code for you?
without the code of the plugin or know what the plugin is doing and how is doing it's difficult from that stack trace.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156