Skip to main content

Notifications

Microsoft Dynamics CRM forum

Managed Solution Import Error

Posted on by 702

Importing a managed solution failed because there are required fields that CRM 2013 thinks is not in the target system nor in the solution itself.

However I can see those fields in both existng other managed solution as well as on the default solution. So no doubt the fields are definitly there in the target system. So have no idea why the importing of the managed solution had failed.

The managed solution has 2 plug-ins with some SDK messages steps pre Image which referencing those fields mentioned above.

One thing I though I might have messed up initially is the managed solution say solutionA.zip was already in the target org, before I imported the updated version of the solutionA.zip I have deleted the existing version solutionA.zip from the target org. After I hit the above error, I have now re imported the original solutionA.zip as managed again, all that was fine as expected. As only the update version of SolutionA.zip has those SDK message step pre image using those fields, not the original solutionA.zip.

Tried to re-import the update version of SolutionA.zip again, no luck still get the failure on those same fields.

Any ideas or suggestions?

many thanks in adv

*This post is locked for comments

  • khoait Profile Picture
    khoait 450 on at
    RE: Managed Solution Import Error

    Thanks guys for replying.

    I decided to try on a new environment and it works. Everything works fine on the new environment. I have no idea why. Maybe there's a bug when importing the solution.

    Cheers,

    Khoa Nguyen

  • Suggested answer
    shennu Profile Picture
    shennu 702 on at
    RE: Managed Solution Import Error

    Turned out to be the publisher name!

    So the publisher name of the managed solution holding plugin assemblies which has steps which references fields is differenct from the managed solution which actually has those Entity Fields in the target org.

    After change the publisher name to match the solution where those Entity fields are held, then import the plugin solution again, all worked fine.

  • Royal King Profile Picture
    Royal King 27,686 on at
    RE: Managed Solution Import Error

    Managed solutions are installed on top of the system solution and can modify any customizable solution components or add more solution components.

    Managed solutions can also be layered on top of other managed solutions. As long as a managed solution enables customization of its solution components, other managed solutions can be installed on top of it and modify any customizable solution components that it provides.

    So when you push new updates to the same entity in new managed soluton system will add those updates to the existing entity customization

    You can find detailed information on how solution is manged in the crm in belwo url

    https://msdn.microsoft.com/en-us/library/gg334576.aspx

  • shennu Profile Picture
    shennu 702 on at
    RE: Managed Solution Import Error

    Chitra,

    Thanks.

    A bit further details, what I have found was in the original version solution which I initially deleted and re-imported to the target org does have preImages which requires those entity fields as well. However that one got imported no problem, eventhough it didn't include those entities in the manage solution. After another look at the unmanaged solution from the source org, I found that the updated version has a second plugin of which its isolation mode is set to "Sandbox" where initial version of the solution only has one plugin with Isolation Mode set to None. I wonder if this is the reason that the original solution imported successfully where updated one has those issues? What do you think

    further to that, assume I include those entities as part of the managed solutionA and Import it into the Target Org.

    Say if we then need to import an updated version of managed SolutionB (which is sitting beneath SolutionA and contains those entities which is now also included in SolutionA), what will happen to those Entities on any updates within SolutionB?

    Cheers

  • Royal King Profile Picture
    Royal King 27,686 on at
    RE: Managed Solution Import Error

    Thats correct. You have include those entities as part of your managed solution.

  • shennu Profile Picture
    shennu 702 on at
    RE: Managed Solution Import Error

    Hey Chitrarasan,

    Hi are you saying even if those entities already exists in the target org, and have those fields already. I still need to include the entities in the solution before importing it?

  • Royal King Profile Picture
    Royal King 27,686 on at
    RE: Managed Solution Import Error

    Include the entities that are referenced in the Plugin step in the solution and try to import.

    Say if you have plugin step registered for account onCreate message include account entity in the 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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,818 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,147 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans