Skip to main content



No record found.

Customer Service forum

Deployment Issue with Managed Solution Error

Posted on by 50

I have a managed solution that I have deployed several times successfully to our environments (Stage, UAT, Production) in the past, but recently we had added some SLA KPIs for upcoming SLA enhancements.  Since this happened our solution will deploy to our lower environments (STAGE, UAT), but we are getting an error when we try to deploy to our Production environment.

Error:  Import failed: Cannot insert duplicate key row in object 'MetadataSchema.EntityRelationship' with unique index 'ndx_for_entitykey_UniqueEntityRelationship'. The duplicate key value is (0, Jan 1 1900 12:00AM, mss_purchasingtask_SLAKPIInstances).

I have looked for any KPI instances in Production, but there are none in the table.  It seems like a metadata issue, but I cannot find it. 

Anybody have this type of issue before or have a troubleshooting path I can take?

Thank you.

  • SidKicksin Profile Picture
    SidKicksin 10 User Group Leader on at
    Deployment Issue with Managed Solution Error
    Hi @coldiron, have you figured any way to resolve this. Thanks

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .


André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,995 Super User

Martin Dráb Profile Picture

Martin Dráb 225,610 Super User

nmaenpaa Profile Picture

nmaenpaa 101,148


Featured topics

Product updates

Dynamics 365 release plans