-
Notifications
You must be signed in to change notification settings - Fork 1k
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
SharePoint Graph Pages API: Internal Server error on PATCH canvaslayout #8793
Comments
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible. |
I, too, get 500 errors every time I try to submit a Here's the request body from an example of me trying to blow the content out of the water on a page that currently has 3 full-width horizontal sections (#1, #2, & #3) and replace it with a page that just has 1 vertical section in it, as a sort of Hello World operation (I am using the Graph Explorer to push through the request): {
"@odata.type": "#microsoft.graph.sitePage",
"canvasLayout": {
"@odata.type": "#microsoft.graph.canvasLayout",
"verticalSection": {
"@odata.type": "#microsoft.graph.verticalSection",
"emphasis": "none"
}
}
} I've also tried it with a Same 500 error.
{
"@odata.type": "#microsoft.graph.sitePage",
"title": "another title change",
"showComments": false,
"showRecommendedPages": false
}
This is extremely show-stopping as there are no API endpoints, PNP CLI commands, etc. to delete text webparts, edit text webpart contents, delete columns, edit column contents, delete sections, edit section contents, etc. The only way to edit the contents of an existing page seems to be Deleting and recreating the page isn't a valid workaround option because that would blow carefully-curated page-read permissions out of the water. Thanks for your attention! |
Issue resolved. |
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues |
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
SharePoint REST API
Developer environment
Windows
What browser(s) / client(s) have you tested
Additional environment details
Describe the bug / error
Graph API responds with "Internal server error 500" on
https://graph.microsoft.com/beta/sites/365redlab.sharepoint.com,c006d14d-1e79-4dc1-9048-9ec48991f220,46067dc3-f26c-414e-a048-994708d6bfd1/pages/31d76036-bc22-41c5-afe3-e62ea9ecd479
with payload:
{
"canvasLayout": {
"horizontalSections": [
{
"id": "1",
"layout": "oneColumn",
"columns": [
{
"id": "1",
"webparts": [
{
"@odata.type": "#microsoft.graph.textWebPart",
"id": "de53338c-f4a3-4a5a-8314-111ac94717e3",
"innerHtml": "
some text
"}
]
}
]
}
]
}
}
Steps to reproduce
This does reproduce on this exact page
sites/365redlab.sharepoint.com,c006d14d-1e79-4dc1-9048-9ec48991f220,46067dc3-f26c-414e-a048-994708d6bfd1/pages/31d76036-bc22-41c5-afe3-e62ea9ecd479
and not for other pages in our tenant
Expected behavior
The canvas layout of the page is updated
The text was updated successfully, but these errors were encountered: