SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.24k stars 1k forks source link

Unable to approve a site page with versioning enabled #9777

Closed vspinelli closed 2 months ago

vspinelli commented 2 months ago

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

None

What browser(s) / client(s) have you tested

Additional environment details

No response

Describe the bug / error

Since few hours, in our customers sites (different tenants), where we have enabled the versioning on the SitePages library when we try to approve a page, after clicked on "Submit for approvals" button, the panel showed loads infinitely, not allowing us to approve the page.

image

We get an error message in the browser console:

TypeError: Cannot read properties of undefined (reading 'id')
    at e._isFlowBasedOnContentApprovalTemplate (chunk.sp-pages-flow_it-it_c1dbfee833970154d0e7.js:4:580)
    at chunk.sp-pages-flow_it-it_c1dbfee833970154d0e7.js:4:1673
    at Array.filter (<anonymous>)
    at chunk.sp-pages-flow_it-it_c1dbfee833970154d0e7.js:4:1645

Steps to reproduce

  1. Enable the versioning on SitePages image

  2. Create a page and send a request to approve it (save the page and the click on "Submit for approval" button)

Expected behavior

The approval request is sent to the approvers

vspinelli commented 2 months ago

Update: on the SitePage library, in addition to the versioning, some kind of PowerAutomate must be enabled, for example the Approval flow or an automated trigger on SitePage library, for example "When an item is created or modified"

vspinelli commented 2 months ago

Now the problem should be resolved. It's really frustrating not to receive any communication of blocking problems on the normal use of SharePoint