Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Solution import problem

Posted on by 200

I can't import my solution with solutionpackager since the folder only contains a dll.data.xml file "\PluginAssemblies\<Assembly Name 1>-{guid 1}\<Assembly Name 1>.dll.data.xml" but not the actual .dll file "\PluginAssemblies\<Assembly Name 1>-{guid 1}\<Assembly Name 1>.dll".

When trying to export the solution with a normal manual export solution (unmanaged) from CRM, I only get the .dll and not the dll.data.xml file.
And when exporting with solutionpackager included in CoreTools (v9.0.2.12) I only get the dll.data.xml file and not the .dll file.

Both the plugin and sdkprocessingsteps are included in the solution in CRM.

I know that I can get the import to work if I remove the plugin and sdkprocessingsteps from the solution inlc references in the solution.xml file, but I dont want to do that everytime I want to import the solution.

Questions:
1. Why doesnt the solutionpackager export the .dll file and only the dll.data.xml file? When the documentation states that It should.
Link: https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/solution-component-file-reference-solutionpackager
2. Why does a normal solution export (unmanaged) only include the .dll file and not the .dll.data.xml file?

3. How do I resolve the isssue?

The error I got when importing was (that got me started looking at the problem):

Following objects, required by the solution, are not present. /n/r Type='PluginAssembly', Id (or schema name)='PluginAssembly-X.Crm.Hooks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=749f69a31206f09p'.
/n/r Please do a dependency check on your solution prior to exporting, add the missing objects to your solution and re-export/n/r

Unhandled Exception: Microsoft.Crm.Tools.SolutionPackager.PluginExecutionException: RootComponent validation failed.

Thankful for all the help I can get.

Other info:
Dynamics 365 version 1612 (9.0.3.7) (DB 9.0.3.7) onpremise
Worked fine in 8.2.
Imported 8.2 solution to 9.0 org. (Worked fine).

Exported the solution (Worked fine).
Tried to import the newly exported solution (Didn't work).
Reset the Org to a vanilla 9.0.
Tried to import the  newly exported soluition again (Didn't work).
Also tried with the latest version av solution packager in Microsoft.CrmSdk.CoreTools (9.0.3.1).

/Rickard

  • l.oliver Profile Picture
    l.oliver 36 on at
    RE: Solution import problem

    Hi Rickard,

    I'm facing the exact same issue...
    Did you manage to find a solution/workaround for this issue?

    I know this is a very old post, so I'm hoping this can be brought back to life...

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... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans