0

I can see the item in the browser and I can find and return the item in powershell, but when I try to delete the item, I get "Item does not exist. The page you selected contains an item that does not exist. It may have been deleted by another user." The same error shows in powershell, in the browser, and in the ULS logs. No further information is supplied.

Notes:

  • In powershell as farm admin and local admin using $item.delete()
  • In browser as SiteCollection Admin. Tried to delete in modal box and direct web link, also in sitemanager.aspx.
  • I did not create the list, and it probably had lookup columns with restrictive delete enabled.
  • I also notice the OOTB ID column has been renamed (curious)

Powershell used per request:

$web = Get-SPWeb "http://site.url.com/path"
$list = $web.Lists["RFP"]
$fin = $list.items | where {$_['ID'] -eq 1}
remove-item $fin -force
  • can you share the code? – Waqas Sarwar MVP May 11 '16 at 19:44
  • List and item creation is all OOTB thorough the browser, no code. Powershell is simple 4 line; get-web, get-list, get-item, remove-item. What code can I provide that will help? – Jammin4CO May 11 '16 at 20:11
  • are you sure the item has ID 1? – Aveenav May 11 '16 at 21:05
  • Can you add items to the list? How many items in this list? – Ahmed Mahmoud May 12 '16 at 9:55
  • Yes it has ID 1. I can find it with powershell and return the title to match – Jammin4CO May 12 '16 at 21:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.