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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

There should not be more than one component instance for a solution being upgraded. Solution id: xxxxxxx

(1) ShareShare
ReportReport
Posted on by 25

I upgraded my D 365 on-premise from V 8.2.3 to 8.2.15. After that I cannot import solution, the error is:

There should not be more than one component instance for a solution being upgraded.  Solution id: xxxxxxx

How to resolve this issue?

I have the same question (0)
  • Suggested answer
    Wei Xiong Profile Picture
    on at

    Hi Wilf Gong,

    This error indicates there's duplicate solution layer detected. So, the import job failed. Can you please post the full error message here?

    Normally, you should see the error like below:

    "There should not be more than one component instance for a solution being upgraded. Solution id: xxxxxx-xxxx-xxxx  Component Type: 9 Object Id: xxxxxx-xxxx-xxxx CurrentState: SolutionActive".

    There should not be more than one component instance for a solution being upgraded.  Solution id: xxxxxx-xxxx-xxxx  Component Type: 2  Object Id: xxxxxx-xxxx-xxxx  CurrentState: SolutionActive

    Component type 2 indicates there's duplicate attributes, Component type 9 indicates the duplicate option set. 

    Once this is confirmed, you need to raise the support ticket to Microsoft. The support engineer will work with you to provide the fix for your solution. It needs the script to run on your CRM DB to fix this. 

    You can see the similar issue here: https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/51755/crm-2011-import-solution-error-error-there-should-not-be-more-than-one-component-instance-for-a-solution-being-upgraded?pifragment-97030=1

  • Community Member Profile Picture
    on at

    Hi Wilf,

    First question is you are getting this error for particular solution or any solution?

    In case of particular solution, it looks like more of one of the solution components is not being upgraded to be compatible with upgraded on premise version.

    In case of all the solution, its kind of you have missed something while upgrading the version or something else which can be answered by Microsoft.

    Thanks

  • Wilf Gong Profile Picture
    25 on at

    Hi all,

    Thanks for all of your replies, I am getting this error for three particular solutions and all of them contain plugins. After I further analyzing, I resolved this issue by following script:

    DECLARE @pluginSolutionid NVARCHAR(50)

    DECLARE @configSolutionid NVARCHAR(50)

    DECLARE @docSolutionid NVARCHAR(50)

    SELECT @pluginSolutionid=solutionId FROM Solution  WHERE UniqueName ='Solution1'

    SELECT @configSolutionid=solutionId FROM Solution  WHERE UniqueName ='Solution2'

    SELECT @docSolutionid=solutionId  FROM Solution  WHERE UniqueName ='Solution3'

    ----delete Plugin Assembly

    DELETE FROM PluginAssemblyBase WHERE SolutionId IN (@pluginSolutionid,@configSolutionid,@docSolutionid)

     OR supportingsolutionid IN(@pluginSolutionid,@configSolutionid,@docSolutionid) ;

    ----delete Plugin

    DELETE FROM PluginTypeBase WHERE PluginTypeid IN(

    SELECT ID FROM (

    SELECT PluginTypeBase.PluginTypeId ID, PluginAssemblyBase.PluginAssemblyid AS assemblyid

    FROM PluginTypeBase LEFT JOIN PluginAssemblyBase ON PluginTypeBase.PluginAssemblyid = PluginAssemblyBase.PluginAssemblyid )

     AS A WHERE A.assemblyid IS NULL

    )

    ----delete Sdk Message Processing Step

    DELETE from SdkMessageProcessingStepBase WHERE SdkMessageProcessingStepid IN(

    SELECT ID FROM (

    SELECT SdkMessageProcessingStepBase.SdkMessageProcessingStepid ID, PluginTypeBase.plugintypeid AS plugin

    FROM SdkMessageProcessingStepBase LEFT JOIN PluginTypeBase ON SdkMessageProcessingStepBase.plugintypeid= PluginTypeBase.plugintypeid )

     AS A WHERE A.plugin IS NULL

    )

    ----delete images

    DELETE from SdkMessageProcessingStepImageBase where SdkMessageProcessingStepImageID IN(

    SELECT ID FROM (

    SELECT SdkMessageProcessingStepImageBase.SdkMessageProcessingStepImageID ID, SdkMessageProcessingStepBase.SdkMessageProcessingStepID AS StepID

    FROM SdkMessageProcessingStepImageBase LEFT JOIN SdkMessageProcessingStepBase ON SdkMessageProcessingStepBase.SdkMessageProcessingStepid= SdkMessageProcessingStepImageBase.SdkMessageProcessingStepid )

     as A WHERE A.StepID IS NULL

    )

    ----delete dependencies

    DELETE FROM Dependencybase WHERE DependentComponentNodeId IN ( SELECT dependencynodeid

    FROM [CaRESmoke_MSCRM].[dbo].[DependencyNodeBase] WHERE ComponentType IN (90,91,92,93) AND basesolutionid IN (@pluginSolutionid,@configSolutionid,@docSolutionid))

    or RequiredComponentNodeId  IN( SELECT dependencynodeid

    FROM [CaRESmoke_MSCRM].[dbo].[DependencyNodeBase] WHERE ComponentType IN (90,91,92,93) AND basesolutionid IN (@pluginSolutionid,@configSolutionid,@docSolutionid))

    So far works fine.

    If any other negative impacts I will post here and let you guys know.

  • Suggested answer
    Wei Xiong Profile Picture
    on at

    Thanks for the update and sharing the script. Good to hear the issue is resolved.

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 83 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

#3
#ManoVerse Profile Picture

#ManoVerse 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans