pnp / pnp/pnpframework

Invoke-PnPSiteTemplate giving error while provisioning ClientSidePage in nested folder

Open
#691 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

<pnp:Provisioning xmlns:pnp="http://schemas.dev.office.com/PnP/2021/03/ProvisioningSchema">
<pnp:Preferences Generator="PnP.Framework, Version=1.5.0.0, Culture=neutral, PublicKeyToken=null" />
<pnp:Templates ID="CONTAINER-TEMPLATE-3388C301FA2944FBBBFDFF32EB0F425C">
<pnp:ProvisioningTemplate ID="TEMPLATE-3388C301FA2944FBBBFDFF32EB0F425C" Version="1" BaseSiteTemplate="SITEPAGEPUBLISHING#0" Scope="RootSite">
pnp:ClientSidePages
<pnp:ClientSidePage PromoteAsNewsArticle="false" PromoteAsTemplate="false" Overwrite="true" Title="Executing Task" ContentTypeID="0x0101009D1CB255DA76424F860D91F20E6C411800F7AB37DA6658EF4FB78CC37790338E4C" ThumbnailUrl="" PageName="getting/Test/task1.aspx">
<pnp:Header Type="Custom" ServerRelativeImageUrl="" LayoutType="NoImage" ShowTopicHeader="false" ShowPublishDate="false" TopicHeader="" AlternativeText="" Authors="[]" AuthorByLine="[]" AuthorByLineId="-1" />
</pnp:ClientSidePage>
</pnp:ClientSidePages>
</pnp:ProvisioningTemplate>
</pnp:Templates>
</pnp:Provisioning>

When PageName is provide inside root or first level folder, provisioning gets successful. But not inside nested folder as give n in above template

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 with the Invoke-PnPSiteTemplate entry point and reproduce the XML using ClientSidePage PageName="getting/Test/task1.aspx". Compare provisioning for root, first-level, and nested folders; done means the nested-folder page provisions successfully without regressing the working cases.

Written by the indexing model from the issue text.

Assessment

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