More in this section

Forums / Developing with Sitefinity / Sitefinity failure to create new pages

Sitefinity failure to create new pages

3 posts, 0 answered
  1. JP
    JP avatar
    7 posts
    03 Feb 2011
    04 Mar 2016
    Link to this post


    We cannot create new pages in our Sitefinity database. When attempting to do so a page does get created (with MVC widget content) however attempting to view the page triggers the error listed below:

    [ArgumentNullException: Value cannot be null.

    Parameter name: key]
       Telerik.Sitefinity.Web.SiteMapBase.FindSiteMapNodeFromKey(String key, Boolean ifAccessible) +196
       Telerik.Sitefinity.Web.PageSiteNodeCollection.UpdateNode(PageSiteNode& node) +319
       Telerik.Sitefinity.Web.PageSiteNodeCollection.get_Item(Int32 index) +108
       Telerik.Sitefinity.Web.InnerEnumerator.get_Current() +47
       Telerik.Sitefinity.Web.SiteMapBase.GetChildNode(PageSiteNode parent, String urlName) +297
       Telerik.Sitefinity.Web.SiteMapBase.ResolveNode(String[] segments, PageSiteNode parent, String expectedExtension, Int32 extensionSegmentIndex, Int32& regularNodesCount, String[]& additionalUrls) +142
       Telerik.Sitefinity.Web.SiteMapBase.FindSiteMapNode(String rawUrl, Boolean ifAccessible, Boolean unresolveUrl, Boolean& isAdditionalUrl, String[]& urlParameters) +1872
       Telerik.Sitefinity.Web.SitefinityRoute.FindSiteMapNode(String& virtualPath, SiteMapBase siteMapProvider, Boolean& isAdditional, String[]& pars, Boolean skipSubSiteCheck) +516
       Telerik.Sitefinity.Web.SitefinityRoute.GetRouteData(HttpContextBase httpContext) +291
       System.Web.Routing.RouteCollection.GetRouteData(HttpContextBase httpContext) +233
       System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +60
       System.Web.Routing.UrlRoutingModule.OnApplicationPostResolveRequestCache(Object sender, EventArgs e) +82
       System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +136
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69


    Attempting to modify content or publish the page produces a popup alert stating:

    "Value cannot be null.<br>Parameter name: key" or "Undefined".


    We have attempted to add the maxPageNodes property with a large value in the web.config as listed below however it has no effect in resolving  the issue. 

    <siteMap defaultProvider="SitefinitySiteMap">

        <add name="SitefinitySiteMap" type="Telerik.Sitefinity.Web.SitefinitySiteMap, Telerik.Sitefinity" taxonomyProvider="OpenAccessDataProvider" pageTaxonomy="Pages" rootNode="FrontendSiteMap" pageProvider="OpenAccessDataProvider" maxPageNodes ="500"/>


    We have also performed maintenance on the Sitefinity DB in order to defragment table indexes to no avail.

    The issue is definitely related to reaching a page limit in Sitefinity since deleting existing pages and re-creating them resolves the issue until the point where a specific number of pages have been recreated without issue and then finally the next one fails. As stated prior the maxPageNodes has no effect is resolving this.  

    We're using Sitefinity version 6.1.43.



  2. Dave
    Dave avatar
    29 posts
    27 Aug 2010
    07 Mar 2016
    Link to this post
    When you create the page,  choose the option that does not automatically open the page in edit mode.
  3. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    06 Sep 2017
    09 Mar 2016
    Link to this post
    Hello Edward,

    Can you please try to increase the value also in the backend (Administration > Settings > Advanced > Pages), Save the changes and restart the application. Increase the value to higher number e.g. 5000. 

    You can refer to that KB article:

    Svetoslav Manchev
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
3 posts, 0 answered