Skip to content

Update Invoke-SPOSiteSwap.md#3877

Closed
sympmarc wants to merge 3 commits intoMicrosoftDocs:masterfrom
sympmarc:patch-1
Closed

Update Invoke-SPOSiteSwap.md#3877
sympmarc wants to merge 3 commits intoMicrosoftDocs:masterfrom
sympmarc:patch-1

Conversation

@sympmarc
Copy link
Contributor

@sympmarc sympmarc commented Aug 22, 2019

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.

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.
@opbld33
Copy link

opbld33 commented Aug 22, 2019

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.

@opbld30
Copy link

opbld30 commented Aug 22, 2019

Docs Build status updates of commit 63688c8:

✅ Validation status: passed

File Status Preview URL Details
sharepoint/sharepoint-ps/sharepoint-online/Invoke-SPOSiteSwap.md ✅Succeeded View (sharepoint-ps)

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.

@kenwith
Copy link
Member

kenwith commented Aug 22, 2019

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

@opbld30
Copy link

opbld30 commented Aug 22, 2019

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.

@opbld32
Copy link

opbld32 commented Aug 22, 2019

Docs Build status updates of commit 4479efd:

✅ Validation status: passed

File Status Preview URL Details
sharepoint/sharepoint-ps/sharepoint-online/Invoke-SPOSiteSwap.md ✅Succeeded View (sharepoint-ps)

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.

@opbld30
Copy link

opbld30 commented Oct 14, 2019

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.

@opbld32
Copy link

opbld32 commented Oct 14, 2019

Docs Build status updates of commit 18a7839:

✅ Validation status: passed

File Status Preview URL Details
sharepoint/sharepoint-ps/sharepoint-online/Invoke-SPOSiteSwap.md ✅Succeeded View (sharepoint-ps)

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.

@trent-green
Copy link
Contributor

trent-green commented Oct 16, 2019

I think these changes are no longer relevant. There was a more recent PR that should have the superset of relevant info.

closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants