pnp / pnp/pnpframework

Invoke-PnPSiteTemplate throw error: "Access is denied" for these fields _Emoji,_ColorHex,_ColorTag

Open
#949 1 comment 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

_Emoji,_ColorHex, _ColorTag fields are added automatically to the extracted template. These fields are not available in the source site but still added to the extracted template which causes the provisioning to fail with below errors. After removing these fields manually from the template and then re-apply the same template is working fine. Please check and let us know why those hidden fields are automatically added to the template while extracting from the base site using Get-PnPSiteTemplate command.

These additional fields are currently breaking our automated site provisioning process.

image

XML Template
image

image image

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 Get-PnPSiteTemplate extraction and Invoke-PnPSiteTemplate application using the XML shown in the issue. Trace how _Emoji, _ColorHex, and _ColorTag are discovered and written into the extracted template. Done means extraction no longer adds unavailable fields, or applying the template no longer fails with Access is denied.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.