Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Dec 16, 2010 @ 14:28
    Anthony Dang
    0

    SiteMapProvider: System.InvalidOperationException: Multiple nodes with the same URL

     

    I did a lot of refactoring of document types yesterday using the "swap master doc type" tool. 

    Today I found that the news node had disappeared from the content tree. So I created another with the same name. Now I get this error in the log when trying to publish.

    Error adding node with url 'News' to SiteMapProvider: System.InvalidOperationException: Multiple nodes with the same URL '/news.aspx' were found. XmlSiteMapProvider requires that sitemap nodes have unique URLs.     at System.Web.StaticSiteMapProvider.AddNode(SiteMapNode node, SiteMapNode parentNode)     at umbraco.presentation.nodeFactory.UmbracoSiteMapProvider.UpdateNode(Node node)

     

    Error adding to SiteMapProvider: System.InvalidOperationException: Multiple nodes with the same URL '/#' were found. XmlSiteMapProvider requires that sitemap nodes have unique URLs.     at System.Web.StaticSiteMapProvider.AddNode(SiteMapNode node, SiteMapNode parentNode)     at umbraco.presentation.nodeFactory.UmbracoSiteMapProvider.loadNodes(String parentId, SiteMapNode parentNode)

     

    What I found interesting is that when I clicked sort on the root node, I found that there were 2 nodes with the same name. 

     

    Any ideas?

     

     

  • Chris Gaskell 59 posts 142 karma points
    Dec 16, 2010 @ 17:47
    Chris Gaskell
    0

    Hey,

     

    Had the news node really disappeared?

    I only say that because we have a lot of trouble with clients not reloading the content tree at regular intervals thus not seeing the latest version of the content.

     

    Chris.

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Dec 16, 2010 @ 19:57
    Anthony Dang
    0

    I've managed to replicate the issue. Although I have no idea on how to fix it.

    It is occurs when swapping master doc types.

    I gave up on trying to fix the issue, and decided to try to replicated it... So I packed up the doc types and content nodes, then put them on a clean install.

    The first thing to note is that the restore of the doc types did not maintain the complete hierarchy. So I started moving the doc types around.

    eg. I want to swap Base Featureable and it's child doc types to inherit from Base Umbraco:

    - BaseFeatureable

    - BaseContent

    - Car

    - Wheel

    - BaseUmbraco

     

    I could not swap a doc type which had children, so I copied it. Ie I copied BaseFeatureable to BaseUmbraco. This created a new doc type called  "BaseFeatureable(copy)". I then copied BaseContent to the new "BaseFeatureable (copy)". From there, I swaped Car and Wheel to "BaseContent (copy)".

    This causes the content nodes using the Car doc type to disappear from the content tree.

     

    Any ideas on how I can get the content node back?

     

     

Please Sign in or register to post replies

Write your reply to:

Draft