Skip to content

[BUG] Restore-PnPRecycleBinItem -RowLimit parameter appears to be broken #2485

@NoahL989

Description

@NoahL989

Hello,

It appears the issue #1598 is not fixed and this is a request to reopen it.

Running into the same issue as #1598 where the -RowLimit parameter appears to not work for Restore-PnPRecycleBinItem.
image

Even when running the command without the filtering it errors.
image

Reporting an Issue or Missing Feature

It is an Issue.

Expected behavior

For the cmdlet to work as intended.

Actual behavior

Getting "The attempted operation is prohibited because it exceeds the list view threshold" error when trying to restore something and the -RowLimit parameter does nothing to fix the error.

Steps to reproduce behavior

Connect-PnPOnline -Url https://example.sharepoint.com/sites/sharepointsite -UseWebLogin
Get-PnPRecycleBinItem -RowLimit 15000 | ? -Property DeletedByName -Like "Firstname Lastname" | Restore-PnPRecycleBinItem -Force -RowLimit 15000

OR

Connect-PnPOnline -Url https://example.sharepoint.com/sites/sharepointsite -UseWebLogin
Restore-PnpRecycleBinItem -Identity 22c4d077-2a3d-446e-bf30-e9ece79820a1 -Force -RowLimit 1

What is the version of the Cmdlet module you are running?

(you can retrieve this by executing Get-Module -Name "PnP.PowerShell" -ListAvailable)

Running version 1.11.109
image

Which operating system/environment are you running PnP PowerShell on?

  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions