Update Invoke-SPOSiteSwap.md#3877
Conversation
When I try to swap in an existing Hub site into the root, I get the following error: Invoke-SPOSiteSwap : The site https://sympraxis.sharepoint.com/sites/Intranet cannot be used with this cmdlet because it's a hub site At line:1 char:1 + Invoke-SPOSiteSwap -SourceUrl https://sympraxis.sharepoint.com/sites/ ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Invoke-SPOSiteSwap], ServerException + FullyQualifiedErrorId : Microsoft.SharePoint.Client.ServerException,Microsoft.Online.SharePoint.PowerShell.SwapSite /sites/Intranet is a Hub Site, so clearly we can't swap a Hub Site, not just sites which are associated with a Hub Site. Once I dissociated the sites with the Intranet Hub Site and used *Unregister as hub site* on Intranet in the SharePoint Admin Center, I was able to do the swap without issue. I have made edits to this doc to make that more clear.
|
Docs Build status updates of commit 63688c8: 🕙 Full build: the average full build time is 11 min(s) 53 sec(s), this is based on the last 870 build(s) for this repository. |
|
Docs Build status updates of commit 63688c8: ✅ Validation status: passed
For more details, please refer to the build report. Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report. |
|
@sympmarc thank you for the testing and making the content better. It is much appreciated. The PM that owns this area is @trent-green and he can review it and get it merged. |
|
Docs Build status updates of commit 4479efd: 🕙 Full build: the average full build time is 11 min(s) 52 sec(s), this is based on the last 872 build(s) for this repository. |
|
Docs Build status updates of commit 4479efd: ✅ Validation status: passed
For more details, please refer to the build report. Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report. |
|
Docs Build status updates of commit 18a7839: 🕙 Full build: the average full build time is 11 min(s) 47 sec(s), this is based on the last 1000 build(s) for this repository. |
|
Docs Build status updates of commit 18a7839: ✅ Validation status: passed
For more details, please refer to the build report. Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report. |
|
I think these changes are no longer relevant. There was a more recent PR that should have the superset of relevant info. closing |
When I try to swap in an existing Hub site into the root, I get the following error:
/sites/Intranet is a Hub Site, so clearly we can't swap a Hub Site, not just sites which are associated with a Hub Site. Once I dissociated the sites with the Intranet Hub Site and used Unregister as hub site on Intranet in the SharePoint Admin Center, I was able to do the swap without issue.
I have made edits to this doc to make that more clear.