Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

CRM 365 - Plugin execution error after Upgrade from 2016

Posted on by Microsoft Employee

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

  • Community Member Profile Picture
    Community Member Microsoft Employee 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
    Community Member Microsoft Employee 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
    BadrinathB 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
    Community Member Microsoft Employee 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
    Guido Preite 54,081 Super User 2024 Season 1 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans