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 http://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 http://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 http://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 (7)

  1. mcnga1 says:

    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!

  2. Kipetcoff says:

    Thanks!!! I was confused by the strange situation with this error.

  3. fran says:

    thank godness there are blogs like this… damn sharepoint 🙁

  4. Rohit says:

    Thanks for help

  5. mohamamd says:

    hi & thanks for your help … how can i change this word (is not default in sharpoint ?!! )

  6. Muthu says:

    I was getting this error without even hitting the page in VS2010. You saved my time. Thanks

  7. Ali says:

    Thanks, this worked