Site Swap issues (Invoke-SPOSiteSwap)

%3CLINGO-SUB%20id%3D%22lingo-sub-801679%22%20slang%3D%22en-US%22%3ESite%20Swap%20issues%20(Invoke-SPOSiteSwap)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-801679%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20All%2C%3C%2FP%3E%3CP%3EI%20just%20ran%20%22Invoke-SPOSiteSwap%22%20and%20get%20some%20issues%20so%20I%20have%20some%20questions%3A%3C%2FP%3E%3CP%3E1.%20Scenario%3C%2FP%3E%3CP%3EThe%20script%20worked%20fine%20(Moved%20the%20Source%20to%20targeted%20and%20create%20the%20Archive)%3CBR%20%2F%3E1.1%20I%20moved%20the%20xxx.sharepoint.com%2Fsites%2FPublic%20to%20root%20site%20xxx.sharepoint.com%3CBR%20%2F%3E1.2%20It%20takes%20~1%20hour%3CBR%20%2F%3E1.3%20I%20moved%20root%20site%20xxx.sharepoint.com%20to%20xxx.sharepoint.com%2Fsites%2Farchive%3CBR%20%2F%3E1.4%20Site%20permission%20and%20files%20are%20moved%20correctly%3CBR%20%2F%3E1.5%20In%20the%20article%20said%20we%20need%20to%20manually%20backup%20the%20Featured%20links%20because%20will%20not%20be%20displayed%20after%20performing%20the%20swap%2C%20but%20I%20am%20able%20to%20see%20the%20same%20Featured%20links%20in%20the%20xxx.sharepoint.com%2F_layouts%2F15%2Fsharepoint.aspx%3C%2FP%3E%3CP%3E2.%20Issues%3A%3C%2FP%3E%3CP%3E2.%20Before%20running%20the%20script%20in%20Admin%20center%20I%20had%20root%20site%20%22xxx.sharepoint.com%22%20and%20%22xxx.sharepoint.com%2Fsites%2FPublic%22%3CBR%20%2F%3EI%20was%20expecting%20to%20have%20%22xxx.sharepoint.com%22%20and%20%22xxx.sharepoint.com%2Fsites%2FArchive%22%20after%20running%20the%20script.%3CBR%20%2F%3EBut%20here%20is%20the%20big%20issue%3A%20I%20still%20have%20the%20%22xxx.sharepoint.com%2Fsites%2FPublic%22%20and%20it's%20giving%20me%20%22Sorry%2C%20something%20went%20wrong%22%20also%20there%20is%20no%20%22xxx.sharepoint.com%2Fsites%2FArchive%22%20in%20the%20admin%20center.%3C%2FP%3E%3CP%3EPlease%20let%20me%20know%20if%20you%20need%20more%20information.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EAlireza%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-801679%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%20center%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESites%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-801832%22%20slang%3D%22en-US%22%3ERe%3A%20Site%20Swap%20issues%20(Invoke-SPOSiteSwap)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-801832%22%20slang%3D%22en-US%22%3EThe%20old%20site%20url%20should%20redirect%20to%20the%20new%20root%20after%20some%20time.%20Admin%20center%20will%20Probabaly%20update%20too%20but%20I%20haven%E2%80%99t%20check%20my%20test%20siteswap%20to%20see%20if%20they%20appear%20and%20how.%20I%E2%80%99ll%20check%20if%20I%20can%20remember%20in%20the%20morning.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-801932%22%20slang%3D%22en-US%22%3ERe%3A%20Site%20Swap%20issues%20(Invoke-SPOSiteSwap)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-801932%22%20slang%3D%22en-US%22%3E%3CP%3EJust%20tested%20Site%20Swapping%20yesterday%20and%20it%20is%20taking%20some%20time%20before%20admin%20center%20is%20updated.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F869%22%20target%3D%22_blank%22%3E%40Chris%20Webb%3C%2FA%3E%2C%26nbsp%3Bafter%20more%20than%2012%20hours%20source%20site%20is%20still%20returning%20Sorry%2C%20something%20went%20wrong.%20File%20not%20found.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-832576%22%20slang%3D%22en-US%22%3ERe%3A%20Site%20Swap%20issues%20(Invoke-SPOSiteSwap)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-832576%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F70455%22%20target%3D%22_blank%22%3E%40Alireza%20Rahimifarid%3C%2FA%3E%26nbsp%3BHi%20There%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20the%20article%2C%20I%20have%20the%20reverse%20problem.%20Someone%20has%20created%20a%20site%20as%20follows%20%3A%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftenant.sharepoint.com%2Fclientname%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftenant.sharepoint.com%2Fclientname%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EI%20need%20to%20move%20this%20to%20a%20SPO%20Site%20like%20the%20rest%20of%20our%20business%20units%20i.e.%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftenant.sharepoint.com%2Fsites%2Fclientname%26nbsp%3B%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftenant.sharepoint.com%2Fsites%2Fclientname%26nbsp%3B%3C%2FA%3Eetc...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%20the%26nbsp%3BInvoke-SPOSiteSwap%20command%20keeps%20failing%20with%20%3A%3C%2FP%3E%3CP%3E%3CSTRONG%3EInvoke-SPOSiteSwap%3C%2FSTRONG%3E%3A%20The%20site%20%3CA%20href%3D%22https%3A%2F%2Ftenant.sharepoint.com%2Fclientname%26nbsp%3Bis%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftenant.sharepoint.com%2Fclientname%26nbsp%3Bis%3C%2FA%3Enot%20properly%20formed.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20would%20be%20appreciated...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EKind%20regards%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3ENeil%20Pickersgill%3C%2FP%3E%3CP%3EInfrastructure%20Engineer%3CBR%20%2F%3EPerth%2C%20Western%20Australia%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-833075%22%20slang%3D%22en-US%22%3ERe%3A%20Site%20Swap%20issues%20(Invoke-SPOSiteSwap)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-833075%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F144431%22%20target%3D%22_blank%22%3E%40Neil%20Pickersgill%3C%2FA%3E%26nbsp%3BInvoke-SPOSite%20currently%20supports%20swapping%20sites%20to%20tenant%20root%20site(%3CA%20href%3D%22https%3A%2F%2Ftenant.sharepoint.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftenant.sharepoint.com%3C%2FA%3E)%20or%20out-of-the-box%20search%20center%20(%3CA%20href%3D%22https%3A%2F%2Ftenant.sharepoint.com%2Fsearch%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftenant.sharepoint.com%2Fsearch%3C%2FA%3E).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fsharepoint-online%2Finvoke-spositeswap%3Fview%3Dsharepoint-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fsharepoint-online%2Finvoke-spositeswap%3Fview%3Dsharepoint-ps%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-835991%22%20slang%3D%22en-US%22%3ERe%3A%20Site%20Swap%20issues%20(Invoke-SPOSiteSwap)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-835991%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F5628%22%20target%3D%22_blank%22%3E%40Matti%20Paukkonen%3C%2FA%3E%26nbsp%3Bthank%20you%20for%20that%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Regular Contributor

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

5 Replies
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.

Just tested Site Swapping yesterday and it is taking some time before admin center is updated. 

 

@Chris Webb, after more than 12 hours source site is still returning Sorry, something went wrong. File not found.

 

@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 Pickersgill

Infrastructure Engineer
Perth, Western Australia

@Matti Paukkonen thank you for that :)