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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM 365 - Plugin execution error after Upgrade from 2016

(0) ShareShare
ReportReport
Posted on by

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&amp; 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

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: CRM 365 - Plugin execution error after Upgrade from 2016

    Hi Badrinath,

    I've performed your suggestion and now plugin work fine.

    thx

  • Community Member Profile Picture
    on at
    RE: CRM 365 - Plugin execution error after Upgrade from 2016

    Thanks for the tip, Badrinath. Will definitely it out and rebuild the plugin code.

  • Verified answer
    BadrinathB Profile Picture
    970 on at
    RE: CRM 365 - Plugin execution error after Upgrade from 2016

    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.

  • Community Member Profile Picture
    on at
    RE: CRM 365 - Plugin execution error after Upgrade from 2016

    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?

  • Guido Preite Profile Picture
    54,084 Moderator on at
    RE: CRM 365 - Plugin execution error after Upgrade from 2016

    without the code of the plugin or know what the plugin is doing and how is doing it's difficult from that stack trace.

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#2
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans