+1-888-365-2779
Try Now
More in this section

Forums / 3.x Pre-release forums (retired) / back button press on create page causes error

back button press on create page causes error

2 posts, 0 answered
  1. Vangelis
    Vangelis avatar
    153 posts
    Registered:
    07 Jan 2006
    04 Mar 2007
    Link to this post
    I create a new page and before I press save changes I press the back button, correct something in master page and press again create page it causes error. It should empty cache because users can do this in cases of slow connections or refresh of a page at this point. It needs a little more attention here. I know that back in browser is something difficult to handle but empty cache is one way.

    Best regards

    Vagelis

    Violation of PRIMARY KEY constraint 'PK_sf_StagedPage'. Cannot insert duplicate key in object 'dbo.sf_StagedPage'.
    The statement has been terminated.

    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.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'PK_sf_StagedPage'. Cannot insert duplicate key in object 'dbo.sf_StagedPage'.
    The statement has been terminated.

    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:

    [SqlException (0x80131904): Violation of PRIMARY KEY constraint 'PK_sf_StagedPage'. Cannot insert duplicate key in object 'dbo.sf_StagedPage'.
    The statement has been terminated.]
    Nolics.ORMapper.DataProviders.SQLBlockBuilder.EndStatement(SQLCommandEventArgs args, DataRow row) +503
    Nolics.ORMapper.DataProviders.SQLBlockBuilder.ExecCommandProcedure(StmtContext context, DataRow data) +779
    Nolics.ORMapper.DataProviders.SQLBlockBuilder.ExecuteCommand(StmtContext context, DataRow data) +76
    Nolics.ORMapper.DataProviders.SQLDataProvider.Update(DataSet updateData) +419
    Nolics.ORMapper.Base.Transaction.Commit(Boolean fCleanIfSuccess) +756
    Nolics.ORMapper.Base.Transaction.Commit() +10
    Telerik.Cms.Web.UI.PageProperties.Button_Command(Object sender, CommandEventArgs e) +476
    System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +105
    System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +163
    System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +174
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102


    Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

  2. Rebecca
    Rebecca avatar
    536 posts
    Registered:
    24 Sep 2012
    05 Mar 2007
    Link to this post
    Hello Vagelis,

    Thank you for drawing our attention to this issue. It was reported some time ago but it seems we haven't fixed it yet. Clicking the Create Page button resubmits the same page and generates the sql data level runtime error.
    Indeed, this should have been caught by exception handling before it bubbles up to the presentation layer. 

    Greetings,
    Rebecca
    the telerik team
2 posts, 0 answered