Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Split a unmanaged solution into two solutions

Posted on by 45

Hi.

I have a unmanaged solution (solution 1) where I created 3 custom entities, fields and some more components. I now want to move these entities and related components to a separate unmanaged solution (solution 2) and export solution 1 as managed and import in in a prod environment.

However when I have removed all these components from solution 1 and added them to solution 2 I still get a list of required components that are now removed and added to solution 2 when I try to export solution 1 as managed.

Is it possible to avoid this problem?

  • Sebastian J Profile Picture
    Sebastian J 45 on at
    RE: Split a unmanaged solution into two solutions

    Thank you for your feedback!

    I was able to solve the issue after some testing back and fourth.

    The problem was solved by re-adding one of the entities where a form was still "stuck" in solution 1. I then removed this form before removing the entity again. After this the dependency was gone.

    It seems you have to sometimes remove the components before removing the whole entity as some of the components inside the entity is still attached to the solution even though the entity is removed.

    I hope this can help others facing the similar issues.

  • Feridun Kadir Profile Picture
    Feridun Kadir 1,705 Most Valuable Professional on at
    RE: Split a unmanaged solution into two solutions

    I see, so there is nothing in solution 1 that needs components from solution 2.  I agree it should export with no dependency warning. Then either there is a bug in the solution system or there is a dependency that isn't obvious to you.

    What I would try is create a new solution, add the components that you have in solution 1 to the new solution one at a time and after adding each one see if the export reveals any dependencies.  I appreciate that is a bit tedious but it might reveal a dependency that you didn't expect or resolve a bug.

  • Sebastian J Profile Picture
    Sebastian J 45 on at
    RE: Split a unmanaged solution into two solutions

    The components that are missing when exporting solution 1 is required by components that are removed from solution 1 so I dont understand why these components are still required?

  • Feridun Kadir Profile Picture
    Feridun Kadir 1,705 Most Valuable Professional on at
    RE: Split a unmanaged solution into two solutions

    But are there dependencies between components in the two solutions?

  • Sebastian J Profile Picture
    Sebastian J 45 on at
    RE: Split a unmanaged solution into two solutions

    I have published solution 1 yes. Still the dependencies are present.

  • Feridun Kadir Profile Picture
    Feridun Kadir 1,705 Most Valuable Professional on at
    RE: Split a unmanaged solution into two solutions

    If any of the components in your solution 1 have dependencies on components that are not in the solution then you will get a message about required components missing when you export the solution. If you are sure that the required components are already present in the target system where you will import the solution then you can ignore the message.

    Are the components in your solution 2 related at all to any of the components that are still in solution 1?  It could be a view or a workflow or a form for example, that reference something in the other solution.

  • LuHao Profile Picture
    LuHao 40,872 on at
    RE: Split a unmanaged solution into two solutions

    Hi Sebastian,

    When you remove all these components from solution 1, did you save and publish solution 1?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans