sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

addContentTypesFromHub not working and 'not supported'

Open sparkitect opened this issue 3 years ago • 9 comments

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.

sparkitect avatar Aug 15 '22 20:08 sparkitect

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

ghost avatar Aug 15 '22 20:08 ghost

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

CallumCrowley avatar Aug 16 '22 09:08 CallumCrowley

Yikes: image

sparkitect avatar Aug 16 '22 17:08 sparkitect

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.

CallumCrowley avatar Aug 16 '22 17:08 CallumCrowley

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

sparkitect avatar Aug 16 '22 17:08 sparkitect

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.

CallumCrowley avatar Aug 16 '22 22:08 CallumCrowley

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

sparkitect avatar Aug 16 '22 22:08 sparkitect

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.

CallumCrowley avatar Aug 16 '22 23:08 CallumCrowley

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

sparkitect avatar Aug 16 '22 23:08 sparkitect