Skip to content

SharePoint Graph Pages API: Internal Server error on PATCH canvaslayout #8793

Closed
@redlab-chris

Description

@redlab-chris

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

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

  • browser version
  • SPFx version
  • Node.js version
  • etc

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

  1. open graph explorer
  2. run the query
  3. with the payload

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

image

Expected behavior

The canvas layout of the page is updated

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:pagesCategory: SharePoint Pages API relatetype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions