Skip to content
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

ModernizeSiteCollections.ps1 - Error message: "Source page is already a modern page" #1105

Open
miltex145 opened this issue Jan 22, 2025 · 0 comments

Comments

@miltex145
Copy link

I'm attempting to modernize a few SPO sites with the Team site (classic experience) template that were created over a decade ago. I've confirmed that their default "home.aspx" pages are the old classic experience, there's no O365 groups attached to them and they are still STS#0. I'm using the "ModernizeSiteCollections.ps1" script that I downloaded from the following repository: https://github.com/pnp/modernization/tree/dev/Scripts/ModernizeSiteCollection

When I run the script, it gets about 90% done and then throws the error "Source page is already a modern page" but as I said, I've confirmed that the SPO site I'm trying to modernize is an old Team site (classic experience) template STS#0 and I've also successfully run the "O365GroupConnectSite.ps1" script (from: https://github.com/pnp/modernization/tree/dev/Scripts/O365GroupConnect) against the same site and it completes successfully and updates the "home.aspx" to modern experience as well as creates an O365 Group and attaches it. I have other SPO sites with the Team site (classic experience) template STS#0 to work with that are getting the same error with the "ModernizeSiteCollections.ps1" script. The issue seems to be located between line numbers 298 and 326 in the "ModernizeSiteCollections.ps1" script.

Please advise and thank you.

P.S. - I've attempted to upload a screenshot of the error, but this portal does not appear to allow that. I also opened an issue for this on the "modernization" discussions board but it does not appear that anyone has responded to anything on that board since 2021. So, I'm hoping to have better luck here on this pnpframework issues board.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant