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 993 forks source link

Enable-spoCommSite error due to publishing feature being enabled in the past #9175

Open Roolee66 opened 11 months ago

Roolee66 commented 11 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

Describe the bug / error

Enable-SPOCommSite : The operation cannot be performed because the publishing feature is enabled on the site, or it was in the past. For more information, see https://spo.ms/EnableCommSite.

Steps to reproduce

1.Connect to site Connect-SPOServer -URL $AdminCenterURL 2.Enable-spoCommSite -siteUrl $siteURL 3.Have read that removing the pages library fixes this but there is only the site pages library present. This is a sharepoint 2013 subsite with a site template applied to it that has been migrated to SharePoint Online

Expected behavior

I would expect the site to be converted to a modern comms site with a new homepage.

ghost commented 11 months ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

pracsol commented 2 months ago

Any updates on this? Or workarounds?