Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

[BUG] Apply-PnPProvisioningTemplate : The attempted operation is prohibited because it exceeds the list view threshold #2817

Open
piteerus opened this issue Dec 7, 2020 · 2 comments

Comments

@piteerus
Copy link

piteerus commented Dec 7, 2020

Environment

[X] Office 365 / SharePoint Online
[ ] SharePoint 2016
[ ] SharePoint 2013

Expected or Desired Behavior

PnP provisioning template successfully applied.

Observed Behavior

Apply-PnPProvisioningTemplate : The attempted operation is prohibited because it exceeds the list view threshold
enforced by the administrator.

Applying provisioning template...
Apply-PnPProvisioningTemplate : The attempted operation is prohibited because it exceeds the list view threshold enforc
ed by the administrator.
At \SharePoint\provisioning\apply-site-template.ps1:49 char:1

  • Apply-PnPProvisioningTemplate -Path $templatePath
  •   + CategoryInfo          : WriteError: (:) [Apply-PnPProvisioningTemplate], ServerException
      + FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.Provisioning.Site.ApplyProvisioningTemplate
    
    

Steps to Reproduce

The list above 5k+ list items and provisioning template is applied. It fails with the above error.

@ghost
Copy link

ghost commented Dec 7, 2020

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

@ghost ghost added the Needs: Triage 🔍 label Dec 7, 2020
@piteerus
Copy link
Author

piteerus commented Dec 9, 2020

OK, I was able to narrow it down. It seems the bug is related to the following code:

<pnp:Files> <pnp:File Src="SiteAssets/images/default-thumbnail.jpg" Folder="SiteAssets/images" Overwrite="FALSE" /> </pnp:Files>

I have more than 5k items in my "Site Assets" library and the above fails. Any ideas on how to fix it?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant