-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Error in Get-PnPContainer : "The attempted operation is prohibited because it exceeds the list view threshold" #3970
Comments
@MSFT-klpinhac , can you please try get-spocontainer using SharePoint Online PowerShell to see if you get the same behaviour? I am unable to test your scenario as I don't have so many Loop workspaces on my environment. |
@MSFT-klpinhac : Thanks for testing with SPO PowerShell, there is a parameter -Paged which you can use to return the pagingtoken which you can use to return the next batch, give it a try and let me know. The same would work for the Get-PnPContainer -OwningApplicationId a187e399-0c36-4b98-8f04-1edc167a0996 -Paged . |
@MSFT-klpinhac - as mentioned above, please use the approach @reshmee011 mentioned above which should work with large tenants. |
@reshmee011 @MSFT-klpinhac - have updated the cmdlet , it will now return the pagination token as well if -Paged is specified. Will be available in tomorrow's nightly build as well as the next major release whenever we do that . Please let us know how it works you now with this update/fix. |
@MSFT-klpinhac : can you please a microsoft case for microsoft to look into the issue using -Paged parameter with cmdlet Get-SPOContainer returning the error exceeding list view threshold. Most like if the underlying endpoint is fixed by Microsoft, PnP PowerShell cmdlet will work too as they call the same endpoint in the background. |
Support case has been created, @reshmee011 |
Reporting an Issue or Missing Feature
while the cmdlet Get-PnPContainer works fine in most tenants, the attempt to retrieve the Loop-Workspaces in a large tenant has returned the error "The attempted operation is prohibited because it exceeds the list view threshold"
Expected behavior
I would expect a list of containers / Loop Workspaces to be returned, no matter how large or small the tenant
What is the version of the Cmdlet module you are running?
PnP.PowerShell 2.4.0
Which operating system/environment are you running PnP PowerShell on?
The text was updated successfully, but these errors were encountered: