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.
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.
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.
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 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?
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.
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?
is working on a reply...