Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to edit the modern Page created using PnP Powershell #1000

Open
rajkumar6193 opened this issue Mar 26, 2024 · 7 comments
Open

Not able to edit the modern Page created using PnP Powershell #1000

rajkumar6193 opened this issue Mar 26, 2024 · 7 comments

Comments

@rajkumar6193
Copy link

I created a modern pages using PnP powershell but when i tried to edit it is showing an error.
![image](h
Capture
ttps://github.com/pnp/pnpframework/assets/115466015/88490127-253e-475e-bec2-ff8fb6170061)

Script i used is

Add-PnPPage -Title <title> -Name <title> -LayoutType Article -HeaderLayoutType NoImage -CommentsEnabled:$false -Publish:$true

@nm-sys
Copy link

nm-sys commented Apr 1, 2024

We are using PnpFramework nuget package and have the same issue

@JMTechno
Copy link

I am also having this issue, is there an updated option?

@nm-sys
Copy link

nm-sys commented May 24, 2024

It's an Microsoft issue and happens only if create blank page. Including CanvasLayout property into the request fixes the issue

@WF-Personal
Copy link

Is there a way to fix it after the fact? I indeed created it and then applied the settings as per what i found on the web, thanks.

@JMTechno
Copy link

Is there a way to fix this afterwards without having to redo the page. I have tried a few things, but for each i have to start over and using the commands i have will cuase it to break again.

@nirav-raval
Copy link

nirav-raval commented Jul 18, 2024

@JMTechno @rajkumar6193 @WF-Personal @nm-sys

Adding a page section fixed this issue for me. Try adding this just after you create a page

#create a page
$page = Add-PnPPage -Name "This is page Name" -LayoutType Article

#create a section below to fix the issue
Add-PnPPageSection -Page $page -SectionTemplate OneColumn -Order 1

@WF-Personal
Copy link

WF-Personal commented Jul 18, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants