Condividi tramite


SPException: No item exists at http

Hi,

Today I get a request from a partner who were experiencing the following error:

Error: No item exists at https://server/site/Pages/pagename.aspx?id=37. It may have been deleted or renamed by another user.

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: Microsoft.SharePoint.SPException: No item exists at https://server/site/Pages/pagename.aspx?id=37 It may have been deleted or renamed by another user.

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: [SPException: No item exists at https://server/site/Pages/pagename.aspx?id=37. It may have been deleted or renamed by another user.]
Microsoft.SharePoint.SPContext.get_Item()
Microsoft.SharePoint.SPContext.get_ListItem()
Microsoft.SharePoint.Publishing.TemplateRedirectionPage.ComputeRedirectionVirtualPath(TemplateRedirectionPage basePage)
Microsoft.SharePoint.Publishing.TemplateRedirectionPage.get_RedirectionUrl()
Microsoft.SharePoint.Publishing.TemplateRedirectionPage.ProcessRequest(HttpContext context)
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

this happens in the following context: they created a page to update list items, and they were showing the list information in the page. Well, I realized that it was an old error (LuisRac :)) the problem is related to the reserved word ID. You should not use ID in your querystring outside the Form pages. So rename it with a different name or change your implementation to use a Custom Form

Bye

Comments

  • Anonymous
    February 04, 2010
    I started to get this error randomly in a new page I was developing.  Sure enough, using "id" in the query string was the culprit.  Thanks for posting this solution!
  • Anonymous
    August 03, 2010
    Thanks!!! I was confused by the strange situation with this error.
  • Anonymous
    September 05, 2010
    The comment has been removed
  • Anonymous
    December 19, 2011
    Thanks for help
  • Anonymous
    November 02, 2012
    hi & thanks for your help ... how can i change this word (is not default in sharpoint ?!! )
  • Anonymous
    August 06, 2013
    I was getting this error without even hitting the page in VS2010. You saved my time. Thanks
  • Anonymous
    December 03, 2014
    Thanks, this worked