You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Restore-PnPRecycleBinItem : The attempted operation is prohibited because it exceeds the list view threshold.
At line:6 char:13
+ Restore-PnPRecycleBinItem -Identity $item -Force -RowLimi ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (:) [Restore-PnPRecycleBinItem], ServerException
+ FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.RecycleBin.RestoreRecycleBinItem
You can see that I tried putting in a "-RowLimit". Even though I can get 50,000 $targets if I set the limit that high, the "restore-pnprecyclebinitem" fails, regardless of the "rowlimit" size on that line. Since I am doing a foreach, and not piplining all 1000 into the command, I'm not sure why it is failing. I am specifying only ONE item to restore. How can I get this to work?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using the 1.3.6-nightly version of "PnP.PowerShell" and trying to restore a large number of deleted items using this script:
This is the error:
You can see that I tried putting in a "-RowLimit". Even though I can get 50,000 $targets if I set the limit that high, the "restore-pnprecyclebinitem" fails, regardless of the "rowlimit" size on that line. Since I am doing a foreach, and not piplining all 1000 into the command, I'm not sure why it is failing. I am specifying only ONE item to restore. How can I get this to work?
Beta Was this translation helpful? Give feedback.
All reactions