pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
985 stars 665 forks source link

[BUG] PageSize doesn't work with -FolderServerRelativeUrl #2951

Open ERGeorgiev opened 3 years ago

ERGeorgiev commented 3 years ago

Reporting an Issue or Missing Feature

Reporting an issue.

Expected behavior

The code: Get-PnPListItem -List $list -FolderServerRelativeUrl $relative -PageSize 500 Should return all items in the folder.

Actual behavior

It throws the following error: "Get-PnPListItem : The attempted operation is prohibited because it exceeds the list view threshold enforced by the administrator."

The limit is 500, and running Get-PnPListItem -List $list -PageSize 500 does not throw this error.

Steps to reproduce behavior

Include both -FolderServerRelativeUrl and -PageSize in the same command.

Which version of the PnP-PowerShell Cmdlets are you using?

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

3.25.2009.1

How did you install the PnP-PowerShell Cmdlets?