Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » Unable to create a new page based on item type in root of page (DW 9.7.3)

Unable to create a new page based on item type in root of page (DW 9.7.3)

Roald Haahr Jensen
Reply

Hi,

Using version 9.7.3, I have made a page item type which is meant to be created in the root of a page. However, when I try to create the page item, I get the following exception:

Server Error in '/' Application.


Parent page ID must be greater than 0, but it was 0

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Parent page ID must be greater than 0, but it was 0

Source Error:

 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:
 

[ArgumentException: Parent page ID must be greater than 0, but it was 0]
   Dynamicweb.Core.Ensure.That(Boolean condition, String message) +135
   Dynamicweb.Content.PageServiceExtensions.GetNextAvailableSortValue(IPageService pageService, Int32 areaId, Int32 parentPageId) +247
   Dynamicweb.Admin.PageTypeSelect.Page_Load(Object sender, EventArgs e) in E:\agent\_work\135\s\01 - Applications\Dynamicweb.Admin\DW97\Dynamicweb.Admin\Admin\Content\Items\Editing\PageTypeSelect.aspx.vb:174
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533

 

 

Creating normal blank pages in the root works as it is supposed to. The page item, which threw the exception above, can be created as a subpage to a blank page without throwing an exception.

The item definition is attached to this post.

My workaround for now is to create a blank page and then change the item type of the page to the desired item type.

Best regards,
Roald, Novicell


Replies

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi Roald,

The issue is reproduced in fact, now it's bugged by TFS 71663 has been submitted. It will be fixed in upcoming DW release. Thanks.

BR, Oleg QA 

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Roald

The problem regarding #71663 "Unable to create a new page based on item type in root of page" has now been resolved in Dynamicweb version 9.7.4

To upgrade please choose this version from download:

http://doc.dynamicweb.com/releases-and-downloads/releases

Let me know if you need any more help regarding this

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 

You must be logged in to post in the forum