pnp / pnp/pnpframework

Invoke-PnPSiteTemplate includeItems not working

Open
#455 0 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

I am using PnP PowerShell 1.7.0.

I export a site template with:

Get-PnPSiteTemplate -Configuration "config.json" -Out "prod.xml"

My config.json looks like this:

{ "$schema": "https://aka.ms/sppnp-extract-configuration-schema", "persistAssetFiles": true, "handlers": [ "Lists" ], "lists": { "lists": [ { "title": "Rahmenvertraege", "includeItems": true } ] } }

It includes all the items with all the fields and values in the prod.xml file but when I run

Invoke-PnPSiteTemplate -Path "prod.xml"

the items are not restored, the list is empty. No error message is thrown.

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 the export and import with the provided config.json, Get-PnPSiteTemplate, and Invoke-PnPSiteTemplate commands. Inspect the list provisioning path for how includeItems data from prod.xml is handled; done means the exported Rahmenvertraege list is restored with its items, fields, and values without errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.