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

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.

Ok.
Go to the sharepoint list and check the item with id is exist or not?
Retrieve the data using another column instead of id column.
Just for testing.
Check the below way also
SPQuery query = new SPQuery();
query.Query = "<Where><Eq><FieldRef Name=\"ID\"></FieldRef><Value Type=\"Integer\">" + id.ToString(CultureInfo.InvariantCulture) + "</Value></Eq></Where>";

Similar Messages

  • SP2013: List does not exist / The page you selected contains a list that does not exist. It may have been deleted by another user

    There are dozens of entries regarding "
    List does not exist / The page you selected
    contains a list that does not exist. It may have been deleted by another user" and none of them are really SP 2013 so i thought I would create this entry. 
    I am getting the error above after creating a simple list with 4 columns.  the list is created during a new site definition activation but when I click on my list, I get the error above.  the list works if I deactivate the feature and re-activate
    it.  but has the error whenever the new site definition is created.  
    Has anybody encountered this issue on SP 2013?

    Hi,
    For your issue, there are plenty of possible reasons offered when we search this issue online.
    Here are similar issue posts, check whether they are helpful:
    http://sharepoint.stackexchange.com/questions/98239/list-does-not-exist-error-when-opening-the-views
    http://sharepoint2u.com/?p=56https://shareyourpoint.wordpress.com/2012/04/12/list-does-not-exist-the-page-you-selected-contains-a-list-that-does-not-exist-it-may-have-been-deleted-by-another-user-sharepoint-2010-error/
    http://spnovice.blogspot.com/2012/10/list-does-not-exist-or-does-it.html
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Lisa Chen
    TechNet Community Support

  • Error System "Item does not exist. It may have been deleted by another user"

    Error System "Item does not exist. It may have been deleted by another user" in sharepoint 2010
    This is problem show when User new item in List . User open new item page about 3 pages and User save each one page when page save complete , User will save another page.
    Sometime User can not save item , it show that error
    This List not have workflow and code
    Please let me know what is the issue ?

    Hi,
    Greetings. THis is a known issue and see the links for resolution
    http://support.microsoft.com/kb/972225
    http://social.technet.microsoft.com/Forums/office/en-US/638e4aa0-527c-4b20-a899-a0cf181983ec/no-item-exists-at-it-may-have-been-deleted-or-renamed-by-another-user?forum=sharepointadminlegacy
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • List does not exist . The page you selected contains a list that does not exists. It may have been deleted by another user

    Hi everybody!
    I have a sharepoint 2013 farm with 5 sever. I upgraded a site from sharepoint 
    2007 to sharepoint 2013. I had some problems to install and configure workflow manager and register it. but by now I found problems and I can create a workflow and run it successfully. My big problem is when I try to get a lookup field in my flow. the
    flow suspended and I got the following error:
    “List does not exist . The page you selected contains a list that does not exists. It may have been deleted by another user.”
    Any solution???
    Thanks in advance!

    Hi,
    Please make sure the source list of the lookup column and the list which consumes the content from the lookup column exists on the site collection.
    In addition, to correct this problem the following steps should be applied:
    Delete the affected Workflow association
    Go to "Central Administration" - "Application Management"
    Select the affected web application and choose "General Settings" - "Resource Throttling"
    Increase the value configured as "List View Lookup Threshold"
    Perform an iisreset to ensure that all in memory instances of the web application settings are gone
    Add the Workflow association back to the list
    More information is here:
    http://social.technet.microsoft.com/Forums/en-US/3aeeba20-07dd-4e46-941b-a3db1bb3577e/sharepoint-2013-designer-workflow-the-page-you-selected-contains-a-list-that-does-not-exist?forum=sharepointcustomization
    Best Regards
    Dennis Guo
    TechNet Community Support

  • "The file [name of file] may have been changed by another user since you last saved it." Issue affects both network and local files.

    When a certain user saves a file in Excel 2010, she gets a message: "The file <name of file> may have been changed by another user since you last saved it."  She can choose to save as another file or overwrite with her changes. 
    This just started happening a week or so ago.  She was concerned that someone else was accessing her files, but we did several tests that opened, made a change and saved in a matter of seconds, and she still gets the message.  It happens on
    most files, but not all – both network and local.
    We already tried the QFE_Saskatchewan registry fix.  I also checked the file server for Services for Macintosh.

    You may be confused by the error in Excel saying “another user”. Actually Excel cannot tell who (the real human) is editing the file. Based on my research the No.1 possibility of the error is KB2626998.
    2626998  Connection to a network document is lost in the 2007 Office system or in Office 2010 after the computer resumes from standby
    http://support.microsoft.com/kb/2626998
    For Excel 2010, follow these steps:
    a.  Click Start , click Run , type regedit in the Open box, and then click OK .
    b.  Locate and then select the following registry subkey: HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Excel\Options
    c.  On the Edit menu, point to New , and then click Dword Value .
    d.  Type NetworkAvailableTimeInSeconds , and then press Enter.
    e.  Right-click NetworkAvailableTimeInSeconds , and then click Modify .
    f.  In the Value data box, click Decimal , type a number value, and then click OK .
    Note This registry subkey sets the time, in seconds, that Excel waits for the network to resume. For example, if you type 15 for the number value, Excel waits 15 seconds for the network to resume. You might have to do some tests in your own environment to
    determine an appropriate value. You may have to try multiple numbers.
    g.  Locate and then select the following registry subkey.
    HKEY_CURRENT_USER\Software\Microsoft\office\14.0\common\Internet
    h.  Repeat step 2C through step 2F again. Reuse the same value that you used previously.
    i.  Exit Registry Editor.
    Feel free to post back. Thanks.
    Cheers,
    Tony Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please contact
    [email protected]

  • Item does not exist error when updating item

    Hi,
    I have a list called "Deal" and I have a ItemUpdated event to update the item permission based on a list field "Owner".
    I find the code run well with site collection administrator account. If I use a regular user account to edit the item, it throws "Item does not exist" error after clicking save button. But the item is actually updated.
    I run the code under debug mode and it does not throw any exception. But the page shows "Item doex not exist" error.
    If I retract the solution, the item can be updated normally without any error.
    My code and the error message:
    public override void ItemUpdated(SPItemEventProperties properties)
    if (properties.ListTitle.Equals("Deal"))
    base.ItemUpdated(properties);
    try
    SPSecurity.RunWithElevatedPrivileges(delegate
    using (SPSite elevatedSite = new SPSite(properties.SiteId))
    using (SPWeb elevatedWeb = elevatedSite.OpenWeb())
    SPList elevatedList = elevatedWeb.Lists[properties.ListId];
    SPListItem elevatedListItem = elevatedList.Items.GetItemById(properties.ListItem.ID);
    // Get Lead owner
    SPFieldUserValue uValue = (SPFieldUserValue)elevatedListItem.Fields["Owner"].GetFieldValue(elevatedListItem["Owner"].ToString());
    SPUser owner = uValue.User;
    bool oldValue = elevatedWeb.AllowUnsafeUpdates;
    elevatedWeb.AllowUnsafeUpdates = true;
    elevatedListItem.ResetRoleInheritance();
    // Break inheritance and clear permissions on list item
    if (!properties.ListItem.HasUniqueRoleAssignments)
    elevatedListItem.BreakRoleInheritance(false);
    // Add permissions for current user
    this.SetPermissionsForUser(elevatedWeb, elevatedListItem, owner, "LeadsOwnerPermission");
    this.EventFiringEnabled = false;
    elevatedListItem.SystemUpdate();
    this.EventFiringEnabled = true;
    elevatedWeb.AllowUnsafeUpdates = oldValue;
    catch (Exception ex)
    COMException (0x81020016): Item does not exist.
    The page you selected contains an item that does not exist. It may have been deleted by another user.<nativehr>0x81020016</nativehr><nativestack></nativestack>]
    Microsoft.SharePoint.Library.SPRequestInternalClass.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView) +0
    Microsoft.SharePoint.Library.SPRequest.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView) +256
    [SPException: Item does not exist.
    The page you selected contains an item that does not exist. It may have been deleted by another user.]
    Microsoft.SharePoint.WebPartPages.DataFormWebPart.InsertCallback(Int32 affectedRecords, Exception ex) +24356360
    System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback) +4064980
    Microsoft.SharePoint.WebPartPages.DataFormWebPart.FlatCommit() +378
    Microsoft.SharePoint.WebPartPages.DataFormWebPart.HandleOnSave(Object sender, EventArgs e) +24
    Microsoft.SharePoint.WebControls.SaveButton.OnBubbleEvent(Object source, EventArgs e) +727
    System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +70
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981

    Can you try removing user permissions iteratively.
    The sample code will look like this.
    //get usernames
    string tempFieldValue = listItem["Assigned To"].ToString();
    string[] userNameArray = listItem["Assigned To"].ToString().Split(';');
    //remove permissions first
    web.AllowUnsafeUpdates = true;
    listItem.BreakRoleInheritance(false);
    SPRoleAssignmentCollection raCollection = listItem.RoleAssignments;
    //remove exisiting permissions one by one
    for (int a = raCollection.Count - 1; a >= 0; a--)
    raCollection.Remove(a);
    for (int i = 1; i < userNameArray.Length; i++)
    tempFieldValue = userNameArray[i].Replace("#", "");
    userName = web.AllUsers[tempFieldValue];
    toAddress = userName.Email;
    SPSecurity.RunWithElevatedPrivileges(delegate()
    //EMAIL USER
    bool result = SPUtility.SendEmail(web, appendHtmlTag, htmlEncode, toAddress, subject, message);
    //PERMISSIONS
    //grant permissions for specific list item
    SPRoleDefinition roleDefintion = web.RoleDefinitions.GetByType(SPRoleType.Contributor);
    SPRoleAssignment roleAssignment = new SPRoleAssignment(userName);
    roleAssignment.RoleDefinitionBindings.Add(roleDefintion);
    listItem.RoleAssignments.Add(roleAssignment);
    listItem.Update();
    i++;
    jaik

  • No item exists at ... It may have been deleted or renamed by another user for new items, but older items work?

    I created a webpart page and added an SPD listformwebpart in display mode for a particular list.
    All day yerterday I called the page and passed it the ?ID= query string and it worked great. It still works great for the items I had created.
    This morning I added a workflow where I email the URL to the page with the ID dynamically on it. Any items I added today give me the error:
    No item exists at ... It may have been deleted or renamed by another user
    All items from yesterday work fine on that page with the exact url... ????
    I was demoing the solution and was completely at a loss to explain this.
    I checked and there is no Item security. I can pull up the suspect items using the native list Display page. I show up as the creator and last modifier My workflow is NOT making any changes to the list .. only sending a url to my page.
    Same URL with only the ID different..Some items work.. some don't.. Any explanation for this?
    UPDATE: I CREATED A BRAND NEW PAGE WITH NO CODE. JUST THE LISTFORMWEBPART AND THE PROBLEM PERSIST.
    ============================
    Thank You
    cyberpine.com

    Not sure if you've seen it already, but here's a step by step guide from Microsoft's help site on creating a custom form.
    http://office.microsoft.com/en-us/sharepoint-designer-help/create-a-custom-list-form-HA010119111.aspx
    The location of the custom form is really irrelevant. As I said, you don't apply security to the forms. They're applied to the list/library level or at the individual items.
    Also, SharePoint 2007 doesn't have column/field level security. Even if you customize your form or use javascript to make certain fields not-editable, it doesn't necessarily mean that's secured. Someone experienced with SharePoint can easily get around it.
    Depending on your user base or sensitivity of your data, making individual fields not-editable may not be a big deal.
    Anyways, take a look at the following article from Laura Rogers. This is one way you can make the form so that only certain fileds are editable.
    http://www.sharepoint911.com/blogs/laura/Lists/Posts/Post.aspx?List=daba3a3b-c338-41d8-bf52-cd897d000cf3&ID=3&Web=dbb90e85-b54c-49f4-8e97-6d8258116ca0
    Good luck...
    Pman
    http://www.pmansLab.com/

  • IDoc message Document or line item does not exist for invoice reference

    Hello,
    We activated IDoc message type FIDCC2. When cancelling documents which were created before the activation date the cancellation documents aren't posted in the receiving system. Message 'Document or line item does not exist for invoice reference' appears. How can I process these items (the reference document can't exist in the receiving system so the only option is to remove it from the IDoc?)?
    Regards, Jan

    This is just a guide.  Adapt it to your situation.  I get this kind of error message where in the case, someone has marked for deletion a line item in the purchase order.  In this regard, the IDoc errors out because the line item number being referenced is marked for deletion.
    You can either delete the IDoc or have the deletion flag taken off the line item number in the PO or document number to enable you reprocess the IDoc number in question.
    Elias

  • Hey i cant get into creative cloud because it keeps asking me to verify and email that does not exist nor i have acess to. i cant find out how to sign out and i tried deleting it and re downloading it!

    hey i cant get into creative cloud because it keeps asking me to verify and email that does not exist nor i have acess to. i cant find out how to sign out and i tried deleting it and re downloading it!

    Change/Verify Account https://forums.adobe.com/thread/1465499 may help
    -wrong email https://forums.adobe.com/thread/1446019

  • Why I cant view my picture on my iphoto and if I try to copy to any folder it Shows "The item on the clipboard cant be pasted to this location. (One or more of the item may have been deleted or are no longer available) "

    Why I cant view my picture on my iphoto and if I try to copy to any folder it Shows "The item on the clipboard cant be pasted to this location. (One or more of the item may have been deleted or are no longer available) "

    There are 9 different versions of iPhoto and they run on 9 different versions of the Operating System. The tricks and tips for dealing with issues vary depending on the version of iPhoto and the version of the OS. So to get help you need to give as much information as you can. Include things like:
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. Describe the problem as fully as you can. For example, if you have a problem with exporting, then explain by describing how you are trying to export, and so on.
    - History: Is this going on long? Has anything been installed or deleted? - Are there error messages?
    - What steps have you tried already to solve the issue.
    - Anything unusual about your set up? Or how you use iPhoto?
    Anything else you can think of that might help someone understand the problem you have.

  • IOS 7 app store update list does not clear after updates have been installed

    iOS 7 app store update list does not clear after updates have been installed

    Rifles wrote:
    Good point, we will have to wait and see, it's a pity Apple has not produce an IOS7 PDF
    You mean like this one?
    http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf
    Best of luck.

  • Cannot find the root of your orgchart. The orgchart box may have been delet

    Hi All
    I have searched to forum for similar issues, but none seem to apply to the errors I get in the CDS log.
    When try-ing to view the Orgchart, in the Orgchart Console I get the following message "Cannot find the root of your orgchart. The orgchart box may have been deleted or incorrectly specified."
    This is the entry in the CDS log.
    6/29/2010 9:26 AM:     ERROR: FieldsType : fieldName = ObjectId; tableName = PositionEmpHierarchy; : Source {.Net SqlClient Data Provider}: Message {Invalid object name 'PositionEmpHierarchy'.}
    6/29/2010 9:26 AM:     ERROR: FieldsType : fieldName = ObjectId; tableName = PositionEmpHierarchy; : Source {.Net SqlClient Data Provider}: Message {Invalid object name 'PositionEmpHierarchy'.}
    6/29/2010 9:26 AM:     ERROR: FieldsType : fieldName = ObjectId; tableName = PositionEmpHierarchy; : Source {.Net SqlClient Data Provider}: Message {Invalid object name 'PositionEmpHierarchy'.}
    6/29/2010 9:26 AM:     ERROR: FieldsType : fieldName = ObjectId; tableName = PositionEmpHierarchy; : Source {.Net SqlClient Data Provider}: Message {Invalid object name 'PositionEmpHierarchy'.}
    6/29/2010 9:26 AM:     ERROR: FieldsType : fieldName = 50000025; tableName = PositionEmpHierarchy; : Source {.Net SqlClient Data Provider}: Message {Invalid object name 'PositionEmpHierarchy'.}
    6/29/2010 9:26 AM:     ERROR: CommandProcessor.getDataSet : select top 25 ObjectId,ShortText,LongText,ParentNo,ParentName,Relation,ObjectType,Pernr,EmpAbbr,EmpName,PositionParent,Subty,Prozt,Vacan,Status from PositionEmpHierarchy where (ObjectId=50000025) order by  Upper(ObjectId)  asc, Upper(Pernr)  asc, Upper(PositionParent)  asc|DC=DestinationConnection : Source {.Net SqlClient Data Provider}: Message {Invalid object name 'PositionEmpHierarchy'.}
    Any suggestions as to what I am missing ?

    Hi Spike,
    There could be a number of reasons why the PositionEmpHierarchy table has not been created. My advice is to run an extract and then run each line of your join statements in your DB. This will highlight where the problem lies.
    Good luck!
    Luke

  • TS4204 I need to delete a calendar event that transfered to my 4S from my Droid.  Also this event occurs yearly.  When I open this event, the edit button in the upper right corner does not exist so I can't delete it.  Any suggestions to get rid of it? Sur

    I need to delete a calendar event that transfered to my 4S from my Droid phone. This event occurs yearly.  When I open this event, the edit button that normally appears in the upper right corner does not exist so I can't delete it.  Any suggestions on how to get rid of it?

    uninstalled firefox ....deleted all files still remaining under mozilla firefox directory in program files ... to avoid having to reprogram all my settings, reisntall all addons as well .. I did not remove anything from mozilla firefox that is stored in either appdata or under the windows users directory (if any)
    ... the as suggested reinstalled the latest version of the firefox browser using the link you provided in the email ..; tested and several issues still remain present and unresolved ....
    so please this is urgent or I will have to jump browsers and start using chrome .. because we work 14 hours a day 6 (sometimes 7) days a week, to get ready for the launch of our newest venture and we cannot lose that much days on browser related issues ... so please instead of putting me through week long step process .. of do this .. do that .. can you please actually look into the issue from your end .. I use firefox for so many, many years thta I deserve this kind of support .. thnx Robert

  • My notes from my iphone4 have been deleted. Heres the problem, the reason it is deleted is because i accidentally deleted my gmail messages. i guess my notes were there to. the notes are not in icloud and not in gmai. is there any way i can get them back?

    My notes from my iphone4 have been deleted. Heres the problem, the reason it is deleted is because i accidentally deleted my gmail messages. i guess my notes were there to. the notes are not in icloud and not in gmai. is there any way i can get them back?

    Qualdog-12 wrote:
    My friend deleted some of my apps from settings as a prank, and I can't get them back by using the App Store.
    if they are no longer in the app store, you can not get them back.

  • "ORA-21700: object does not exist or is marked for delete" select from ADT

    Posted this in OLAP section as well, but since this is Object technology, I thought I would repeat it here. Sorry about the duplication.
    BTW, I'm using Oracle9i 9.2.0.4.1.
    I'm trying to create a script that can automate the process of generating abstract data types for use in an OLAP_TABLE function. I'm following the examples in the documentation. Everything runs great the FIRST time I run my script, but when I drop my types and re-create them, when I run the next SELECT statement against the OLAP_TABLE function, I get:
    ERROR at line 1:
    ORA-21700: object does not exist or is marked for delete
    My script drops the ADTs before creating, but somehow they are not REALLY being dropped.
    SET ECHO ON
    SET SERVEROUT ON
    DROP TYPE ts_table_6;
    DROP TYPE ts_row6;
    CREATE TYPE ts_row6 AS OBJECT(
    CONJ2002 VARCHAR2(400),
    CONJ2002_DATA number(16),
    PERIOD VARCHAR2(10),
    PERIOD_NAME VARCHAR2(20));
    CREATE TYPE ts_table_6 AS TABLE OF ts_row6;
    SELECT CONJ2002, period, period_name, conj2002_data FROM TABLE(OLAP_TABLE(
    'REFVLMTA DURATION QUERY',
    'ts_table_6',
    'limit CONJ2002 to first 3',
    'MEASURE CONJ2002_DATA from CONJ2002.DATA
    DIMENSION CONJ2002 from CONJ2002
    DIMENSION PERIOD from PERIOD WITH
    ATTRIBUTE PERIOD_NAME from period.name'));
    Again, it works the first time, but not the second time. I need to bump up the ADT names to ts_row7 and ts_table_7. SQL Plus says the types are being dropped.
    Any ideas?
    Dan Vlamis [email protected]

    Hi Dan
    What append if you do a connect between the DROP and the CREATE statements?
    Chris

Maybe you are looking for