pnp / pnp/powershell

[BUG] Export-PnPPage doesn't create info about the client side page if certain section backgrounds are used.

Open
#4,897 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C#
Stars
904
Forks
407
Avg merge
9h 16m
Merged PRs (30d)
10

Description

Reporting an Issue or Missing Feature

If you use Export-PnPPage on a page that has a section background other than the first few very simple ones the exported xml file does not include a client side page object.

Expected behavior

When you run Export-PnPPage -Force -Identity $PageName -Out $migrationFileLocation -PersistBrandingFiles you should generate a file that includes all of the info to restore the page using Invoke-PnPSiteTemplate -Path $migrationFileLocation

Actual behavior

You get an xml file without the clientsidepage section

Image

Steps to reproduce behavior

Export-PnPPage -Force -Identity $PageName -Out $migrationFileLocation -PersistBrandingFiles

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

3.1.0

Which operating system/environment are you running PnP PowerShell on?
  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify

Contributor guide

Open the contributing guide

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 issue with Export-PnPPage -Force -Identity $PageName -Out $migrationFileLocation -PersistBrandingFiles using a section background beyond the simplest options. Trace the Export-PnPPage path and compare the generated XML with the expected clientsidepage information; done means the exported file includes that section and can be restored with Invoke-PnPSiteTemplate.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.