web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
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.

 

I have the same question (0)
  • Community Member Profile Picture
    on at

    Thanks for sharing!

  • Prabhat Pandey - MSFT Profile Picture
    125 on at

    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.

  • Prabhat Pandey - MSFT Profile Picture
    125 on at

    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 45 Most Valuable Professional

#2
iampranjal Profile Picture

iampranjal 36

#3
Satyam Prakash Profile Picture

Satyam Prakash 31

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans