导入解决方案报错:Unable to retrieve customActivityInfo using RetrieveCustomActivityInfoWithSandboxPlugin

我是微软Dynamics 365 & Power Platform方面的工程师罗勇,也是2015年7月到2018年6月连续三年Dynamics CRM/Business Solutions方面的微软最有价值专家(Microsoft MVP),欢迎关注我的微信公众号 MSFTDynamics365erLuoYong ,回复419或者20200720可方便获取本文,同时可以在第一间得到我发布的最新博文信息,follow me!

有时候导入解决方案会报错类似如下:

Plugin Assemblies import: FAILURE. Error: Plugin: XXX.XXX.XXX, Version=1.0.0.0, Culture=neutral, PublicKeyToken=xxxxxxx caused an exception.: 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 --

这个一般是解决方案源头环境删除了某个自定义工作流活动/插件步骤,然后目标环境没有删除导致的。

查看究竟是哪个现在也比较简单了,不用其他辅助程序或者工具了(我以前的博文 Dynamics 365 Customer Engagement导入解决方案时出错:Microsoft.Crm.CrmException: Plug-in assembly does not contain the required types or assembly content cannot be updated. 提到了一些工具和程序),现在拿最新版本的插件注册程序注册一下就知道了,直接告诉我们是哪个了,示例如下:

然后使用插件注册工具讲这个找不到的自定义工作流活动/插件步骤 unregister一下再重新导入就可以了。

原文地址:https://www.cnblogs.com/luoyong0201/p/Dynamics_365_Unable_to_retrieve_customActivityInfo_using_RetrieveCustomActivityInfoWithSandboxPlugin.html