Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Solution import fails due to pre-existing entity's and objects

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Ok I'm really interested to find out whats going on with this one. I've been thru the entire internet. (no really ;) ). Basically we are creating upgrade packages for some solutions and these new packages contain exactly the same attributes as the pre-existing packages. But they fail, either using maintain or overwrite customizations.

It flags an error, on one attribute, that the optionset schema name is not unique. When you remove that attribute, it then simply fails with no error messages (getting to the String Maps part of the process, and then not carrying on any further.)

So, I can rule out that the schema names are different, or that the attribute types are different (they are exactly the same in both the original solution and the update solution) 

The only other thing to note, is that the attributes it's potentially trying to overwrite, (or not as the case maybe when using maintain customizations) do contain data. 

All the solutions are managed, any thoughts are appreciated!

*This post is locked for comments

  • Mohammed Fakhri Profile Picture
    Mohammed Fakhri 402 on at
    RE: Solution import fails due to pre-existing entity's and objects

    Hi Ben, I facing the same issue in Dynamics 365 Online. How do i resolve this. since we don't want to lose data in the prod attribute.

  • Suggested answer
    Hosk Profile Picture
    Hosk on at
    RE: Solution import fails due to pre-existing entity's and objects

    I have seen this scenario many times and it's usually caused by someone deleting a field and recreating a field with the same name but a different type.

    What happens when they try to import this, CRM can't overwrite the field because it's a different type, so it tries to create the new field (but with the same schema name) and fails because it already exists.

    You need to narrow down the entity and then compare the fields to see if any field types have changed between environments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Solution import fails due to pre-existing entity's and objects

    The Root cause –an Attribute has been deleted then recreated in source environment. When recreated it got different schema name (Uppercase letters) but same logical name as the one deleted. In short, Schema names are case sensitive.

     

    Resolution – Compare the schema name before you start importing customization.

    If any attribute is there in the target but not in the source then check and remove these types of fields.

    How to compare ? simply you can use one of available for free Metadata Browsers

  • Waqar Sohail Profile Picture
    Waqar Sohail on at
    RE: Solution import fails due to pre-existing entity's and objects

    Hi, Please try to remove the attributes Xml of entity from customizations.xml. Aslo remove OOB tabs, Relationship, forms from the customizations.xml.

  • Suggested answer
    Gus Gonzalez Profile Picture
    Gus Gonzalez 27,113 on at
    RE: Solution import fails due to pre-existing entity's and objects

    Can you rename the attribute inside the customizations.xml and try to import again?

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,622 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,354 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans