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?
[ ] PnP PowerShell for SharePoint 2013
[ ] PnP PowerShell for SharePoint 2016
[ ] PnP PowerShell for SharePoint 2019
[x] PnP PowerShell for SharePoint Online
What is the version of the Cmdlet module you are running?
3.25.2009.1
How did you install the PnP-PowerShell Cmdlets?
[ ] MSI Installed downloaded from GitHub
[x] Installed through the PowerShell Gallery with Install-Module
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?