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 CRM (Archived)

Can't load the site map because one or more components have duplicate IDs

(0) ShareShare
ReportReport
Posted on by

Hello,

After the realisation of a migration from previous version of CRM to 365 (OnPremise), when i double click in SiteMap, i receive this error message : "We can't load the site map because one or more components have duplicate IDs".

The validation of the SiteMap XML with the new sitemap.xsd is OK.

I checked the trace and find nothing relevant.

Thanks for your help,

Nicolas

*This post is locked for comments

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

    Try to download sitemap using XrmToolBox and SiteMap Editor.  Maybe it will give you some meaningful error.

    Also you can create new organization, download vanilla sitemap and import it to your old organization.

  • Community Member Profile Picture
    on at

    Thanks for your answer.

    I already tried the XrmToolBox and SiteMap Editor. No error. Just a message : "Editing Microsoft Dynamics 365 Apps Sitemaps is currently not possible due to SDK limitations. If you need to edit this kind of Sitemap, please use the integrated Sitemap designer in Microsoft Dynamics 365".

    I will try with vanilla sitemap.

    Thanks

  • Suggested answer
    sandeepc Profile Picture
    5,514 on at

    change the organization name and connect again.

  • Community Member Profile Picture
    on at

    Thank you Sandeep. I renamed the organization name as you mentionned, even though I did not really understand what it could change.

    The error message is still the same.

  • Community Member Profile Picture
    on at

    I would suggest you to export your sitemap in a solution and check if there are any duplicate areas,Group Id, SubArea Id.

    Refer this:

    msdn.microsoft.com/.../gg334280.aspx

  • Suggested answer
    Community Member Profile Picture
    on at

    Just remove all custom entities from navigation menu.

  • Community Member Profile Picture
    on at

    Finally, i didn't find a solution.

    I had to redo a new site plan

    Thanks a lot for your help.

    Nicolas

  • Verified answer
    Community Member Profile Picture
    on at

    Hello,

    I found the solution.

    In previous versions, we could have two subareas with the same id in 2 separate groups.

    Now it's impossible.

    So,

    1. you have to export the sitemap in XML format(a solution with just the sitemap)
    2. and then delete the subareas that are in "duplicate".
    3. Reimport the solution.
    4. You can then open sitemap

    Hope that'll help.

    Nicolas

  • MRanta Profile Picture
    60 on at

    Hello,
    What exactly you mean by Duplicates.  When I look at the "default sitemap" at https://msdn.microsoft.com/en-us/library/gg334280.aspx  I can see that even there are duplicates such as SubAreaID "nav_accts" appearing in more than one group.  The error message is not very informative.

  • Suggested answer
    thuld Profile Picture
    on at

    The combination between area and subarea must be unique. You could use the following PowerShell script to identify those duplicates:

    using namespace System.Xml;

    function Find-DuplicateSubareaIdsInSitemap() {

       PARAM(

           [Parameter(Mandatory)]

           [XmlElement]

           $SitemapRootNode

       )

       $allSubareas = [System.Collections.ArrayList]@();

       $areaNodes = $SitemapRootNode.Area;

       foreach($areaNode in $areaNodes) {

           $areaName = $areaNode.Id;

           $subareas = $areaNode.GetElementsByTagName('SubArea');

           foreach($subareaNode in $subareas) {

               [void]$allSubareas.Add([PSCustomObject]@{

                   Area = $areaName;

                   SubareaId = $subareaNode.Id

               });

           }

       }

       # in order to find duplicates - group by area-id and subarea-id

       $grouped =  $allSubareas | Group Area, SubareaId;

       # find only those subareas where multiple items exists per group

       $duplicates = $grouped.Where({ $_.Count -gt 1 });

       $duplicates;

    }

    # $filename = '2017-03-08 SiteMap (Pre-Production).xml'

    $fileName = '2017-03-08 Modified Sitemap (Development).xml';

    $filepath = Join-Path $PSScriptRoot $filename;

    $sitemap = [Xml](Get-Content -Path $filepath);

    $duplicates = Find-DuplicateSubareaIdsInSitemap -SitemapRoot $sitemap.ChildNodes[0];

    if($duplicates.Count -eq 0) {

       Write-Host -ForegroundColor Green "No Duplicate 'Subarea' nodes found - all is good!"

    }

    else {

       Write-Host -ForegroundColor Red "Found '$($duplicates.Count)' duplicates 'Subarea' nodes"

       $duplicates | Sort Name

    }

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans