powershell icon indicating copy to clipboard operation
powershell copied to clipboard

Get-PnPHubSiteChild: The attempted operation is prohibited because it exceeds the list view threshold.

Open Nibushi opened this issue 5 years ago • 4 comments

When working on a Tenant with a large number of hubsites and sites, Running Get-PnPHubSiteChild returns the following error message: Get-PnPHubSiteChild: The attempted operation is prohibited because it exceeds the list view threshold.

The tenant has 7811 site collections. Is the issue that the number of site collections is above 5000?

I am running PnP.PowerShell v1.3.0.

The command does run successfully on a Tenant where there are only a few hundred site collections.

Nibushi avatar Feb 27 '21 14:02 Nibushi

Yes, that is indeed the issue. We retrieve the list of hubsites from a list in the tenant administration site. We'll work on a fix.

erwinvanhunen avatar Mar 01 '21 09:03 erwinvanhunen

Thanks for the update. I can work around the issue at the moment.

Nibushi avatar Mar 01 '21 11:03 Nibushi

We fixed the issue and it will be available in the next available release.

erwinvanhunen avatar Mar 01 '21 13:03 erwinvanhunen

That's customer service for you :-)

Nibushi avatar Mar 01 '21 13:03 Nibushi