Forum Discussion
Alireza Rahimifarid
Aug 13, 2019Steel Contributor
Site Swap issues (Invoke-SPOSiteSwap)
Hello All,
I just ran "Invoke-SPOSiteSwap" and get some issues so I have some questions:
1. Scenario
The script worked fine (Moved the Source to targeted and create the Archive)
1.1 I moved the xxx.sharepoint.com/sites/Public to root site xxx.sharepoint.com
1.2 It takes ~1 hour
1.3 I moved root site xxx.sharepoint.com to xxx.sharepoint.com/sites/archive
1.4 Site permission and files are moved correctly
1.5 In the article said we need to manually backup the Featured links because will not be displayed after performing the swap, but I am able to see the same Featured links in the xxx.sharepoint.com/_layouts/15/sharepoint.aspx
2. Issues:
2. Before running the script in Admin center I had root site "xxx.sharepoint.com" and "xxx.sharepoint.com/sites/Public"
I was expecting to have "xxx.sharepoint.com" and "xxx.sharepoint.com/sites/Archive" after running the script.
But here is the big issue: I still have the "xxx.sharepoint.com/sites/Public" and it's giving me "Sorry, something went wrong" also there is no "xxx.sharepoint.com/sites/Archive" in the admin center.
Please let me know if you need more information.
Alireza
- Neil PickersgillCopper Contributor
Alireza Rahimifarid Hi There,
Thanks for the article, I have the reverse problem. Someone has created a site as follows :
https://tenant.sharepoint.com/clientname
I need to move this to a SPO Site like the rest of our business units i.e. https://tenant.sharepoint.com/sites/clientname etc...However the Invoke-SPOSiteSwap command keeps failing with :
Invoke-SPOSiteSwap : The site https://tenant.sharepoint.com/clientname is not properly formed.
Any help would be appreciated...
Kind regards,
Neil PickersgillInfrastructure Engineer
Perth, Western Australia- Matti PaukkonenIron Contributor
Neil Pickersgill Invoke-SPOSite currently supports swapping sites to tenant root site(https://tenant.sharepoint.com) or out-of-the-box search center (https://tenant.sharepoint.com/search).
- Neil PickersgillCopper Contributor
Matti Paukkonen thank you for that 🙂
- Matti PaukkonenIron Contributor
Just tested Site Swapping yesterday and it is taking some time before admin center is updated.
ChrisWebbTech, after more than 12 hours source site is still returning Sorry, something went wrong. File not found.
- The old site url should redirect to the new root after some time. Admin center will Probabaly update too but I haven’t check my test siteswap to see if they appear and how. I’ll check if I can remember in the morning.