pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
987 stars 665 forks source link

Unable to Register a Communication SharePoint Online site as a Hub Site #2693

Open vbhanage opened 4 years ago

vbhanage commented 4 years ago

Unable to Register a Communication SharePoint Online site as a Hub Site

Register-PnPHubSite -Site $SiteURL

Register-PnPHubSite : The property 'EnforcedECTs' does not exist on type 'SP.HubSite'. Make sure to only use property names that are defined by the type. At line:1 char:1

ghost commented 4 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

TroyHostetter commented 4 years ago

Receiving the same error. It is aborting from the SPO Admin panel as well. The client is a geo tenant. I was able to "Hubify" a site on my MSDN tenant, so not sure if it is an issue with geo or not.

KoenZomers commented 4 years ago

Works fine here as well. Both via SPO Admin Center as well as using the latest PnP PowerShell version using Register-PnPHubSite.

@vbhanage are you trying this on a multi geo enabled tenant by chance?

TroyHostetter commented 4 years ago

@KoenZomers our tenant is multi geo enabled.

KoenZomers commented 4 years ago

@KoenZomers our tenant is multi geo enabled.

That lead to me asking that question :) I don't have access to such a tenant myself and am not experiencing the issue on a normal MT, so trying to figure out if it's a multi-geo tenant only issue.

KoenZomers commented 4 years ago

@vbhanage Can you comment on my above question please?

TroyHostetter commented 4 years ago

Sorry Koen .. I thought I had commented. Yes .. it is a mutli-geo tenant issue. I've not had any problems with a standard tenant.

KoenZomers commented 4 years ago

Sorry Koen .. I thought I had commented. Yes .. it is a mutli-geo tenant issue. I've not had any problems with a standard tenant.

No worries, you had replied to the question already. Wondering about @vbhanage his situation to try to find a common denominator here. Looks like it's a multi geo only issue.

KoenZomers commented 4 years ago

Can you guys try doing the same using Register-SPOHubSite from the SharePoint Online PowerShell module? If the same problem exists with that, it's an issue on the server side. And it most likely is as PnP PowerShell directly hands the request over to CSOM which passes it to the server, so nothing we could do about it. Ensure the same problem exists with the Register-SPOHubSite as well and if it does, file a support ticket on it with Microsoft.

vbhanage commented 4 years ago

Hi,Yes mine is multi geo environment.

KoenZomers commented 4 years ago

@vbhanage please try what I asked for in my comment above and share the outcome.

KoenZomers commented 4 years ago

@TroyHostetter any luck for you with Register-SPOHubSite?