#SharePointProblems | Koskila.net

Solutions are worthless unless shared! Antti K. Koskela's Personal Professional Blog

How to resolve the "You cannot edit this page"-error in Modern SharePoint

koskila
Reading Time 3 min
Word Count 473 words
Comments 8 comments
Rating 5 (1 votes)
View

This article describes an error situation that you might run into in Modern SharePoint, where you cannot take a page into edit mode anymore. You only get a strangely generic error message with a kinda weird failed request in the console. But, of course, there's a fix - and an easy one at that!

Problem

Huh - so here's a weird one for you!

Take a modern communication site, create a new beautiful page, produce some high-quality content, and even go to great extents to have the right content type and all metadata filled out, hit publish and be happy. All good?

Sure! Until you want to edit the page the next time. Then you might run into this error:

You cannot edit this page

We're sorry, we encountered an unexpected error. Please try again, if the problem persists please contact your Administrator.

Okay, that's very non-descriptive. What exactly is happening? Let's take a closer look at the console on the page in question...

Okay - the throttling aside, this (or similar) line is what's interesting:

sp-pages-assembly_en-us_3a44851ceb440353702787c2ed227287.js:1189 POST https://contoso.sharepoint.com/sites/CommsSite190304/\_api/sitepages/pages(3)/checkoutpage 406

For whatever reason, the request to check out the page before editing it fails, and the error message presented to the end-user is less than helpful.

Solutions

So far, we've found 2 different solutions. They might actually come down to the same technical solution behind the scenes, but the steps for the end-user are a bit different.

How to resolve the "You cannot edit this page"-error in Modern SharePoint:

Time needed: 10 minutes.

How to fix "You cannot edit this page" in Modern SharePoint?

  1. Restore an earlier version

    In one case, we figured the latest, saved but not published, version of the page was somehow corrupted. The page looked like it was working but editing it just doesn't work.
    Not too surprisingly, restoring an earlier version might work in a case like this. In one case for us, it did.

  2. Change the content type

    Another option - may be editing whatever page layout you have selected that doesn't work in Modern SharePoint? That was another case we encountered.
    In this case, you should be good by changing the content type and your page layout to Site Page. See below for an illustration!

    The first step is to select the item to access its Properties:
    How to access the "Properties" view of a list item in Modern SharePointHow to access the "Properties" view of a list item in Modern SharePoint

    Then you need to take the Properties into edit mode:

    While in "Properties" view of a list item, you can access the Edit form by clicking "Edit Item".
    While in the "Properties" view of a list item, you can access the Edit form by clicking "Edit Item".

    Then you can change the Content-Type (to Site Page, usually) - and that should remove the error:

    You can change the Content Type of a list item when on the Edit Form.
    You can change the Content-Type of a list item when on the Edit Form.

All good? Not good? Let me know if it didn't help and let's fix it!

Comments

Interactive comments not implemented yet. Showing legacy comments migrated from WordPress.
Chris Lynam
2020-01-06 16:41:02)
So in my case the same issue was caused in a new SharePoint site where there were editors with a non-standard editing permission list who were not in the visitors group. Once they were added to the visitors group the issue was resolved.
2020-01-08 14:14:40
Thanks for sharing, Chris! SharePoint permissions are an endless source of fun little issues... 😅
Cheri
2022-02-15 21:22:57)
Thanks for this solution! It worked for me. I migrated sites, then applied a new site template. The result was I could not edit the new home page. This solution worked. Sometimes it's easy when you know how!
Antti K. Koskela
2022-03-04 16:57:37
Thanks for your comment, Cheri! Super happy to hear it helped. 😊
Shiva
2022-11-14 15:08:16)
You should delete the owner of site pages especially if he left the company. you should not have a name or email address under title of site page. otherwise you receive this error message as well. go to site pages and click on edit an then delete email address or name of creator under the title of site page.
2022-11-14 16:40:35
Hi Shiva, Thanks for your comment! Can you elaborate on why should the owner of pages (or any other content) be deleted or empty? Cheers, Antti
Magdalena Fernlund
2024-10-01 09:51:49)
For anyone looking for a way to be able to use custom content types on site pages but getting this error, check that the content type has Site Page as a parent that it inherits from. Otherwise you will get this error.
Antti K. Koskela
2024-10-01 13:49:12
Thanks for the comment, Magdalena! Super helpful.
Whitewater Magpie Ltd.
© 2025
Static Site Generation timestamp: 2025-08-12T07:18:40Z