Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Microsoft Dynamics 365 8.2.8.15 on-premise: Issue with importing of the managed solutions

(1) ShareShare
ReportReport
Posted on by 55

Hi all,

I've faced the issue while updating the managed solutions.

So, I've updated a few scripts, forms and tried to import the new version of the solution on another environment to test.
I've got the following error "There should not be more than one component instance for a solution being upgraded.  Solution id: ********* "

Also, I'm not able to unregister the current assembly from the target environment. The reason is: Cannot insert duplicate key exception when executing non-query: System.Data.SqlClient.SqlCommand Exception: System.Data.SqlClient.SqlException (0x80131904): Violation of UNIQUE KEY constraint 'UQ_PluginTypeBase_TypeMetadata'. Cannot insert duplicate key in object 'dbo.PluginTypeBase'.

Have anyone faced this issue before? How to avoid this problem?

*This post is locked for comments

  • Michael.Matsiy Profile Picture
    Michael.Matsiy 55 on at
    RE: Microsoft Dynamics 365 8.2.8.15 on-premise: Issue with importing of the managed solutions

    Yes.

    Probably, you've unregistered some of your plugin or workflow assemblies before import.

    If you have access to the DB, you need to write and run a script to remove all the pluginassemblies, plugintypes, sdkprocessingsteps and sdkprocessingstepmessages with componenttype 2 and overwrite time which isn't equal to 1900-00-00.

    Good luck.

    If you have an additional questions reach to contact me

  • duchan Profile Picture
    duchan 397 on at
    RE: Microsoft Dynamics 365 8.2.8.15 on-premise: Issue with importing of the managed solutions

    I have same issue. Did you find solution?

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,403 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans