Forum Discussion

Julian Maartens's avatar
Julian Maartens
Copper Contributor
Nov 25, 2020
Solved

Replace site/Site Swap functionality missing

Hello,   I am trying to swap our (classic) root site to a new modern site. By using the instructions from https://docs.microsoft.com/en-us/sharepoint/modern-root-site I did not manage to initiate t...
  • Julian Maartens's avatar
    Julian Maartens
    Dec 08, 2020

    bonniems Hi there. Actually I managed to fix this a few days ago.


    I ran the SharePoint Diagnostic Tool (https://docs.microsoft.com/nl-nl/microsoft-365/enterprise/page-diagnostics-for-spo?view=o365-worldwide) first, but despite the plug-in not showing any errors or recommendations, I was not able to execute the PowerShell commands.

    The solution: connect to SharePoint Online using PowerShell (Connect-SPOService), don't run any commands just yet. Now, visit the URL you want to migrate and run the diagnostic tool (see link above) from your browser. Any yellow or red warnings need to be fixed before you can actually migrate! If all checks are green, run the diagnostic tool again. Then wait a few seconds and run the PowerShell-commands to migrate the site. Using the -force parameter is not required.

    Now the command should work. If it does not, make sure that:
    - the PowerShell session is started before you run the diagnostic tool- your PowerShell-session was started using Global Admin- or (at least) SharePoint Admin-credentials- you are running PowerShell as administrator
    - you are logged on to the same account on both the PowerShell session and the browser you're using (the diagnostic tool will do a background check to check if the username matches)

    Otherwise I would recommend contacting Microsoft Support through the 365 Portal. Let me know if this worked for you!

Resources