Saturday, August 14, 2010

SharePoint Exception: No item exists [url]. It may have been deleted or renamed by another user.

This is one of the exception regularly comes when we do custom development and create custom aspx pages. Everything works fine and no code issues but still this exception comes.


Error occur as :- No item exists at http://sitename/pagename.aspx?Id=2.It may have been deleted or renamed by another user.


The issue can be easily solved by renaming the querystring parameter to a different name other than Id
(E.g http://sitename/pagename.aspx?empid=2).


After renaming the parameter the Sharepoint page will work as expected.


The issue occurs due to conflict of querystring parameter Id with sharepoint list Id.


Hope this helps and save you from killing so much time to know the problem.









2 comments:

  1. do i need to change the querystring in one place in EDITFORM.aspx OR do i need to search @ID and replace with some thing else? Please explain the process of changing querystring.

    ReplyDelete
  2. just change parameter @ID to other e.g @empid to rersolve your issue.

    e.g if you have used querystring in your custom page (asp.net application) like http://sitename/pagename.aspx?Id=2

    Change it to http://sitename/pagename.aspx?empid=2

    ReplyDelete