Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Issue workaround : Repackging of extracted solution thru SolutionPackager fails for Sitemap component with error: 'RootComponentValidation': RootComponent validation failed.

(1) ShareShare
ReportReport
Posted on by 125

Issue Symptom:   Repackging of extracted solution thru SolutionPackager fails for Sitemap component with error:  'RootComponentValidation': RootComponent validation failed.

Cause :  After the 9.2 Train 21073.* deployment of Dataverse(CDS/CRM) 4 new nodes were introduced to the customizations XML for the default sitemap.  This has resulted in errors when repacking solutions using the solution packager or build tools.  These are 4 tags are introduced recently on the XMLs within the Sitemap tag:

 

<EnableCollapsibleGroups>False</EnableCollapsibleGroups>

<ShowHome>True</ShowHome>

<ShowPinned>True</ShowPinned>

<ShowRecents>True</ShowRecents

 

Root cause:  Repack  expects one child of the root Sitemap node and throws error for additional nodes.  When the additional nodes are removed the solution packs without error.

This issue only applies to the default sitemap.  It does not impact model driven app sitemaps and it only occurs if the default sitemap is included in the solution. 

 

Example with Error detail :

pastedimage1632190108641v1.png

Nodes added to the sitemap XML in the customizations XML file:

  <EnableCollapsibleGroups>False</EnableCollapsibleGroups>

  <ShowHome>True</ShowHome>

  <ShowPinned>True</ShowPinned>

  <ShowRecents>True</ShowRecents>

 

Error logged when repacking the solution:

Error        Following objects, required by the solution, are not present.

  Type='SiteMap', Id (or schema name)='SiteMap-{d5684797-805b-4188-b8fa-1028cfbef003}'.

  Type='SiteMap', Id (or schema name)='SiteMap-{d5684797-805b-4188-b8fa-1028cfbef003}'.

  Type='SiteMap', Id (or schema name)='SiteMap-{d5684797-805b-4188-b8fa-1028cfbef003}'.

  Type='SiteMap', Id (or schema name)='SiteMap-{d5684797-805b-4188-b8fa-1028cfbef003}'.

 

Please do a dependency check on your solution prior to exporting, add the missing objects to your solution and re-export

Error occurred during execution of plugin 'RootComponentValidation': RootComponent validation failed.

SolutionPackager: PluginExecutionException thrown: Microsoft.Crm.Tools.SolutionPackager.PluginExecutionException: RootComponent validation failed.

 

How to work around to allow success of Repackage operation =>

1. Remove above 4 tags within the customizations.xml if you really need to pack the Default Sitemap in your solution package. They are harmless optional fields for modern sitemap capability.

2. Don't add the Default Sitemap to the solution when exporting as it's legacy Web client Sitemap and no longer needed on online version of Unified Client app.

Next steps: A new version of SolutionPackager tool be made available soon that customers can download and  use in their DevOps pipeline.

 

  • RE: Issue workaround : Repackging of extracted solution thru SolutionPackager fails for Sitemap component with error: 'RootComponentValidation': RootComponent validation failed.

    Note:  A new set of Power Platform Tooling Refresh has been released, which fixes this issue fully.  Here are version number and download links for all the tools.

    1. SolutionPackager 9.1.0.90: www.nuget.org/.../

    2. pac CLI 1.9.8: www.nuget.org/.../

    3. Power Platform Tools VSCode 0.2.22: marketplace.visualstudio.com/items

    4. powerplatform-action (GH Actions) 0.4.3: github.com/.../

    5. Power Platform Build Tools (Azure DevOps) 1.0.40: marketplace.visualstudio.com/items

  • RE: Issue workaround : Repackging of extracted solution thru SolutionPackager fails for Sitemap component with error: 'RootComponentValidation': RootComponent validation failed.

    Note: A new version of standalone SolutionPackager.exe  is updated in its regular distribution channel:  <www.nuget.org/.../>

    Versions 9.1.0.90 and above have the fix for this issue:

    9.1.0.90:

    SolutionPackager:

    - add support for ModernSiteMap

    Note: We're now in the process of updating and shipping pac CLI, PowerPlatform VS Code extension, AzDevOps PP.BT build tasks and GitHub Actions powerplatform-actions. ETA: Next two weeks.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Issue workaround : Repackging of extracted solution thru SolutionPackager fails for Sitemap component with error: 'RootComponentValidation': RootComponent validation failed.

    Thanks for sharing!

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! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans