SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.24k stars 1.01k forks source link

addContentTypesFromHub not working and 'not supported' #8371

Open sparkitect opened 2 years ago

sparkitect commented 2 years ago

In one customer tenant, the "addContentTypesFromHub" verb does not work; when it is included in a Site Script used by a Site Template, the Site Template is never applied.

Have tried applying the Site Template in the UI and via PnP.PowerShell. Even though a new Microsoft.Online.SharePoint.TenantAdministration.TenantSiteDesignTask is created, it never does any work, regardless of what else is included in the Site Script.

I'm definitely doing it correctly because the same Site Template works in another tenant without issue.

Submitted a Service Request to O365 support and was told

I would like to inform you that we are from the break-fix team and this issue requires a developer approach. Unfortunately, we do not have the expertise in this issue

and

we will be proceeding with the closure as this is out of scope of our support boundaries and that I should seek Developer support instead.

Everything I can find suggests that rollout of the verb is complete accross all tenants, but it doesn't seem so...

Does anyone have any ideas?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ghost commented 2 years ago

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

CallumCrowley commented 2 years ago

@sparkitect have you checked the content type publishing log? (on a site where you have tried to apply the site script)

sparkitect commented 2 years ago

Yikes: image

CallumCrowley commented 2 years ago

That's actually normal if content types have never been synced to the site (using the old timer job). I think the log gets provisioned the first time the sync gets run on the site. I just assumed that this new method of pushing content types to the site would log any errors incurred in the same place.

sparkitect commented 2 years ago

Getting the same on a site that has (manually) made use of the new ct publishing model, so perhaps the new ct publishing model makes no use of it, unless perhaps if there is an error.

Adding the publushed Content Types using the new in-library method works just fine.

Good thinking though, @CallumCrowley

CallumCrowley commented 2 years ago

Very odd. If the in-library method works correctly and there are no errors with your script, I can't see how Microsoft support wouldn't pick this up for you. This sounds like an issue with the tenant/service.

sparkitect commented 2 years ago

definitely, but the O365 support team hasn't a clue about Site Scripts/Templates, apparently: image

CallumCrowley commented 2 years ago

That's bizarre. If you've followed the documentation and done everything correctly, then this is a server side issue. I would definitely go back to Microsoft support, as they are the only people who can deal with server side issues.

sparkitect commented 2 years ago

They keep sending me in circles; trust me, you do NOT want to see the length of the email chain w/ them 😠