Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Dynamics CRM 365 - Exporting / importing solution error due to dependencies

Posted on by 170

Hi everyone, 

I've developed a solution on a developer Dynamics 365 CRM instance. Actually, it's a trial version which contains all proposed modules during installation. Now that I've created my solution, I've exported it as a managed solution and gave it to the customer. He cannot install it because there are some missing dependencies on his instance, which are the following: 

dependencie.png

So it says that on the USER form that I've adding to my solution, there are some dependencies with some other solutions named "Project Service" and "Field Service".

When I go to the form included in my solution, and hit "Show dependencies", it's written that the solution won't be installed on a system that doesn't have a given list of components. Among them, many components (relations, entities, fields) are from the above two solutions.

As I cannot delete the dependent solutions (FieldService and Project Service), how can I resolve these dependencies ?

*This post is locked for comments

  • Verified answer
    Hubert Solecki Profile Picture
    Hubert Solecki 170 on at
    RE: Dynamics CRM 365 - Exporting / importing solution error due to dependencies

    Thanks everyone for the answers. What I've done:

    1. deleted the USER entity from my solution which had strong relations with FieldService and ProjectService.
    2. delete all solutions associated to FieldService solution and then the FieldService solution itself at the end.
    3. delete all solutions associated to ProjectService solution and then the ProjectService solution itself at the end.
    4. Having just msdyn_salesapp and msdyn_customerserviceapp installed as solutions, I have recreated the user entity in my solution and exported it.

    Everything works find now on the customer instance.

    Just notice that the process of deleting the solutions is long and sometimes seems blocked or even not working, but sometimes needs to refresh the page to saw that the solutions are really deleted. Need to be patient. 

  • Indika Abayarathne Profile Picture
    Indika Abayarathne 671 on at
    RE: Dynamics CRM 365 - Exporting / importing solution error due to dependencies

    If you need a radical way, you can play with Solution XML files :)

    Create another trial environment with no dependancies such as Feild Service and Project Service solutions and import it to that environment before sending it to client.

    But it always risky to change XML files manually and you will have to try few times when you importing.  

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics CRM 365 - Exporting / importing solution error due to dependencies

    Another thing you can try but is a bit risky (as in you need to do quite some testing to make sure there is no breaks).

    Edit the solution.xml file in your exported .ZIP file, and remove the necessary dependency components. You need to have another environment to test whether your solution can still be imported successfully after the dependencies are removed.

    Otherwise try to exclude those sub components from your solution if that is not necessary (e.g. field service might have created additional form in contact entity which might not be required for your solution).

  • Suggested answer
    ashlega Profile Picture
    ashlega 34,475 on at
    RE: Dynamics CRM 365 - Exporting / importing solution error due to dependencies

    You might try removing the form from your solution and exporting the solution again. If there are no other dependencies on the FIeld/Project Service, you may be able to install that solution in the customer environment.. you'll still need to re-create the form there, but, at least, all other components might get installed correctly. Or you might spawn another org and do the same there first (but, again, at least you might not have to re-create everything)

  • Wayne Walton Profile Picture
    Wayne Walton 13,726 on at
    RE: Dynamics CRM 365 - Exporting / importing solution error due to dependencies

    You could go through one-by-one and try to remove every dependency, but that seems like more work than the other two options.

  • Hubert Solecki Profile Picture
    Hubert Solecki 170 on at
    RE: Dynamics CRM 365 - Exporting / importing solution error due to dependencies

    Thanks for the answer but there is no other way these radical ways ?

  • Suggested answer
    Wayne Walton Profile Picture
    Wayne Walton 13,726 on at
    RE: Dynamics CRM 365 - Exporting / importing solution error due to dependencies

    Make your client install the Field Service and Project service modules in their environment.  

    Alternately, if that is not possible, roll up a new CRM system with only the Sales module enabled, and rebuild your solution from scratch.

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

Featured topics

Product updates

Dynamics 365 release plans