pnp / pnp/pnpframework

[BUG] Invoke-PnPSiteTemplate: The attempted operation is prohibited because it exceeds the list view threshold.

Open
#722 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
259
Forks
161
Avg merge
10h 33m
Merged PRs (30d)
1

Description

Reporting an Issue or Missing Feature

Issue

Expected behavior

List instance provisioned

Actual behavior

image

Steps to reproduce behavior

Invoke-PnPSiteTemplate -Path $provisioningFilePath;
against a site with a list with 5000+ items
Using an PnP XML schema with pnp:Lists<pnp:ListInstance ...>...</pnp:Lists></pnp:ListInstance>

It was tested running on PowerShell 7 and older versions.
The same script, against the same site, runs on some machines but not others, using the same $ErrorActionPreference variable value.

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

Latest

Which operating system/environment are you running PnP PowerShell on?

Windows

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing Invoke-PnPSiteTemplate with the reported PnP XML ListInstance against a site containing more than 5,000 items, comparing the machines and PowerShell versions. Trace the provisioning path responsible for list creation and identify why the list view threshold is exceeded; done means the list instance provisions without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
backend, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.