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 :
Microsoft Dynamics CRM (Archived)

CRM 2016 On Premise Upgrade failure - Plug-in assembly does not contain the required types or assembly content cannot be updated

(0) ShareShare
ReportReport
Posted on by 70

Hi

Our CRM server has been upgraded from CRM 2015 to CRM 2016 - SP1 successfully. But when I tried to import an organization, it stops at the version of 8.0.0.528. It failed with an error when trying to update to 8.1.0.359. See error below.

System.Exception: Error.ActionFailed Microsoft.Crm.Tools.Admin.ImportActivityFeedsAction ---> Microsoft.Crm.Tools.ImportExportPublish.ImportSolutionException: Plugin Assemblies import: FAILURE. Error: Plugin: ActivityFeeds.Plugins, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 of PluginTypeName: Microsoft.Crm.Entities.PluginType and PluginTypeNode: System.Xml.XmlElement caused an exception. ---> Microsoft.Crm.Tools.ImportExportPublish.ImportPluginTypesException: Plugin Types import: FAILURE. Error: Plugin: ActivityFeeds.Plugins, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 of PluginTypeName: Microsoft.Crm.Entities.PluginType and PluginTypeNode: System.Xml.XmlElement caused an exception. ---> Microsoft.Crm.CrmException: Plug-in assembly does not contain the required types or assembly content cannot be updated.

Thank you.

Blessings, 

Wesley


===================

Error Log

10:51:22|   Info| Executing Install action: Microsoft.Crm.Tools.Admin.SetOutOfBoxDocumentTemplatesAction
10:51:23|   Info| CrmAction execution time; SetOutOfBoxDocumentTemplatesAction; 00:00:01.1160373
10:51:23|   Info| Executing Install action: Microsoft.Crm.Tools.Admin.ImportActivityFeedsAction
10:52:21|  Error| System.Exception: Error.ActionFailed Microsoft.Crm.Tools.Admin.ImportActivityFeedsAction ---> Microsoft.Crm.Tools.ImportExportPublish.ImportSolutionException: Plugin Assemblies import: FAILURE. Error: Plugin: ActivityFeeds.Plugins, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 of PluginTypeName: Microsoft.Crm.Entities.PluginType and PluginTypeNode: System.Xml.XmlElement caused an exception. ---> Microsoft.Crm.Tools.ImportExportPublish.ImportPluginTypesException: Plugin Types import: FAILURE. Error: Plugin: ActivityFeeds.Plugins, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 of PluginTypeName: Microsoft.Crm.Entities.PluginType and PluginTypeNode: System.Xml.XmlElement caused an exception. ---> Microsoft.Crm.CrmException: Plug-in assembly does not contain the required types or assembly content cannot be updated.
   at Microsoft.Crm.CrmPluginAssemblyMetadata.GetPluginTypeMetadata(String typeName)
   at Microsoft.Crm.ObjectModel.PluginTypeValidator.ValidateInternal()
   at Microsoft.Crm.ObjectModel.PluginValidatorBase.Validate()
   at Microsoft.Crm.ObjectModel.PluginTypeServiceInternal`1.Create(IBusinessEntity entity, ExecutionContext context)
   at Microsoft.Crm.Tools.ImportExportPublish.ImportPluginAssemblyHandler.CreateOrUpdatePluginType(PluginType pluginType, BusinessProcessObject service)
   at Microsoft.Crm.Tools.ImportExportPublish.ImportPluginAssemblyHandler.ImportItem()
   --- End of inner exception stack trace ---
   at Microsoft.Crm.Tools.ImportExportPublish.ImportPluginAssemblyHandler.ImportItem()
   --- End of inner exception stack trace ---
   at Microsoft.Crm.Tools.ImportExportPublish.ImportXml.RunImport(String[] ImportEntities)
   at Microsoft.Crm.Tools.ImportExportPublish.ImportXml.RunImport()
   at Microsoft.Crm.SE.DllMethodActions.ConfigureSalesRefresh.ImportSolution()
   at Microsoft.Crm.SE.DllMethodActions.ConfigureSalesRefresh.Install(Boolean isUpgrade)
   at Microsoft.Crm.Tools.Admin.ImportActivityFeedsAction.Do(IDictionary parameters)
   at Microsoft.Crm.Setup.Shared.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
   --- End of inner exception stack trace ---, Error, RetryCancel, Option1
10:58:17|   Info| InputResult: Retry
10:58:17|   Info| CrmAction execution time; ImportActivityFeedsAction; 00:06:54.3894323
10:59:02|  Error| System.Exception: Error.ActionFailed Microsoft.Crm.Tools.Admin.ImportActivityFeedsAction ---> Microsoft.Crm.Tools.ImportExportPublish.ImportSolutionException: Plugin Assemblies import: FAILURE. Error: Plugin: ActivityFeeds.Plugins, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 of PluginTypeName: Microsoft.Crm.Entities.PluginType and PluginTypeNode: System.Xml.XmlElement caused an exception. ---> Microsoft.Crm.Tools.ImportExportPublish.ImportPluginTypesException: Plugin Types import: FAILURE. Error: Plugin: ActivityFeeds.Plugins, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 of PluginTypeName: Microsoft.Crm.Entities.PluginType and PluginTypeNode: System.Xml.XmlElement caused an exception. ---> Microsoft.Crm.CrmException: Plug-in assembly does not contain the required types or assembly content cannot be updated.
   at Microsoft.Crm.CrmPluginAssemblyMetadata.GetPluginTypeMetadata(String typeName)
   at Microsoft.Crm.ObjectModel.PluginTypeValidator.ValidateInternal()
   at Microsoft.Crm.ObjectModel.PluginValidatorBase.Validate()
   at Microsoft.Crm.ObjectModel.PluginTypeServiceInternal`1.Create(IBusinessEntity entity, ExecutionContext context)
   at Microsoft.Crm.Tools.ImportExportPublish.ImportPluginAssemblyHandler.CreateOrUpdatePluginType(PluginType pluginType, BusinessProcessObject service)
   at Microsoft.Crm.Tools.ImportExportPublish.ImportPluginAssemblyHandler.ImportItem()
   --- End of inner exception stack trace ---
   at Microsoft.Crm.Tools.ImportExportPublish.ImportPluginAssemblyHandler.ImportItem()
   --- End of inner exception stack trace ---
   at Microsoft.Crm.Tools.ImportExportPublish.ImportXml.RunImport(String[] ImportEntities)
   at Microsoft.Crm.Tools.ImportExportPublish.ImportXml.RunImport()
   at Microsoft.Crm.SE.DllMethodActions.ConfigureSalesRefresh.ImportSolution()
   at Microsoft.Crm.SE.DllMethodActions.ConfigureSalesRefresh.Install(Boolean isUpgrade)
   at Microsoft.Crm.Tools.Admin.ImportActivityFeedsAction.Do(IDictionary parameters)
   at Microsoft.Crm.Setup.Shared.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
   --- End of inner exception stack trace ---, Error, RetryCancel, Option1
10:59:12|   Info| InputResult: Cancel
10:59:12|   Info| CrmAction execution time; ImportActivityFeedsAction; 00:00:55.3464771
10:59:12|  Error| Installer Complete: OrganizationUpgrader - Error encountered
10:59:12|  Error| Exception occured during Microsoft.Crm.Tools.Admin.OrganizationUpgrader: Error.ActionFailed Microsoft.Crm.Tools.Admin.ImportActivityFeedsAction

*This post is locked for comments

I have the same question (0)
  • Karsten Wirl Profile Picture
    4,477 on at
  • Wesley Fang Profile Picture
    70 on at

    Hi Karsten,

    Thank you for your reply! From the stack trace log, you can tell the error comes from the Activity Feeds plugin which is a system but not a custom plugin. You can't drop / unregister it. I think it more like a data issue than plugin configuration issue.

    Warm regarding,

    Wesley Fang

  • Community Member Profile Picture
    on at

    Hi Wesley,

    Did you managed to figure it out? I'm hitting the same issue after upgrading to 2016 SP 1.

    Regards,

    Al

  • Verified answer
    Wesley Fang Profile Picture
    70 on at

    Hi, 

    Here is the solution Microsoft support provided. I will manage to implement those next Monday. Will post the result after at here. 

    Please note the steps below:
    1- We need to download Microsoft Dynamics CRM 2016 plugin registration tool from the SDK which is same major build as CRM database which needs to be imported.https://www.microsoft.com/en-in/download/details.aspx?id=50032
    2- Connect plugin registration tool to the problem database while it is accessible in the source CRM deployment.
    3- Take a back up of the organization_MSCRM and MSCRM_CONFIG database.
    4- Delete all activity feed plugin from the plugin registration tool after making sure that Activity Feed solution does not show up in solutions grid in the application.
    5- Lets navigate back to the IIS and then make sure CRM is accessible.
    6- Then take back - up of the Org and see if import of DB works this time.
    7- If it still doesn't then install Activity Feeds solutions from C:\Program Files\Microsoft Dynamics CRM\Setup\Serviceability\Latest\Actions_Org\Install\Solutions then bounce IIS and make sure that CRM is accessible.
    8- Take backup and then import the DB.
    Good luck.
    Wesley
  • Verified answer
    Community Member Profile Picture
    on at

    Hi Wesley, 

    I was able to figure out my issue, this is what I did:

    1. Take a back up of the organization and MSCRM_Config
    2. Remove all the workflow processes (otherwise the plugin registration tools will not allow the removal of the plugin assemblies)
    3. Use the plugin registration tools to remove all the plugin assembly
    4. Run the upgrade

    All the best for you. 

    Regards,

    Albert

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans