Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Item does not exist. It may have been deleted by another user

$
0
0

Hi,

I am getting a strange issue with the error "Item does not exist. It may have been deleted by another user " with the below code which was under "RunWithElevatedPrivileges" in a application page.

public void test(int requestId)

{

-------------

--------------

SPList list= web.Lists["test"];
SPListItem lstItem = list.GetItemById(Convert.ToInt32(requestId)); //Error

--------------

----------------

}

But when I test the above code in a console application, it is working fine & I am sure the id exist in the list.

Can any one help me on this issue!

Thanks In Advance,

Kumar.




Viewing all articles
Browse latest Browse all 7589

Trending Articles