Unable to create document from custom content type, using document template

Copper Contributor

If we create a content type in the Content Type Gallery and specify a document template URL, the content type cannot be used to create a new document in a library using the "New" menu (after pulling the content type in to the libary). The users have read access to the document template.

 

When selecting the content type from the "New" menu, a tab is opened and then immediately closed. Upon inspection, the following error is found in the console:

264659645-435ae748-0703-4439-ae9b-e18fb632ce7a.png

264660668-6224af11-8685-4ed3-8e1b-a360b1f37a26.png

264665078-c0ac2789-f2fe-4b4d-8f4f-175f2ab75183.gif

The document template is stored in a different site, to the site in which the content type is being used e.g.

 

Template URL: /sites/Templates/Shared Documents/Short document template.dotx
Library: /sites/Testteam/Shared Documents

 

The content type is pulled from the Content Type Gallery, with the document template URL property already filled in.

 

This also occurs if you upload the document template to the content type within the Content Type Gallery and then pull that content type down to the site. This leads to a synchronisation error which can be found in the Content type publishing error log:

264710295-543de1c7-0b1d-4a21-8a48-6dbb0499b780.png

When using the "New" menu it seems that the GetListUsingPath API call, is unable to handle a server relative URL that refers to a document template in another SharePoint site.

 

The alternative of uploading the document template to the content type via the gallery, doesn't seem to work because the file is not synchronised to sites when the content type is pulled down.

Steps to reproduce

  1. Create a custom content type in the Content Type Gallery, inheriting from the Document content type.
  2. Open the content type in the Gallery and click Settings and then Advanced settings
  3. Enter a URL of document template stored in a SharePoint site in your tenant. Ensure that you have access to this site and document template.
  4. Navigate to a library in a separate site to where your template is stored.
  5. Click the "+Add column", scroll to the bottom and click "Add a content type", then click Next.
  6. Choose the content type you created in step 1 and apply.
  7. Use the New menu and attempt to create a document using the content type.

Expected behavior

After clicking the content type from the "New" menu, a new document will be created using the document template for that content type.

14 Replies
Hi, we have discovered the same issue today. Have you had any luck in identifying a fix?

@StewartAShark sadly not, we have opened a ticket with Microsoft but no progress so far.

 

I've also opened an issue on GitHub:

 

Unable to create document from custom content type, using document template 

@CallumCrowley Thanks for the reply I will also raise a ticket to try and get some traction.  Have you an idea when this bug presented? Our environment is stable but only discovered the problem last week.  Been troubleshooting down a culdesac since last Thursday, but bug could have been around since late July 23 when we have evidence of Content Types working as expected.  Surprised there are not more posts if it has been around since July so I suspect it to be a recent change.

We are thinking it's been a problem for at least 3 weeks or so. I've recreated the problem on multiple tenants since though. It's a big problem for some of our clients who have hundreds of sites relying on the Content Type Gallery. They simply cannot create files from the "New" menu using their content types and it's a major issue.

For us, it is only affecting newly created sites which have recently pulled down the content type from the gallery. Therefore, I can see why there might not be more posts but I have spotted another tech community post reporting the problem.

Surely this has to be fixed soon, as anyone using the flat architecture is out of luck if they want to use document templates with their content types, across many sites.
Hi, similarly the problem only effects newly created sites. Unfortunately we are a business in the unfortunate position you portray. Need it fixed asap, but thinking about creating a local read only library with docs and manually update Content Types locally opposed to relying upon the Content Type Hub, which currently appears useless.

Hi All

We are also experiencing this error.

It has shown itself for us after we tried to change the templates to open in the Web App and not the installed App. It still works using the installed App. It also still works at the library level where the template is stored just not any published sites.

Hopefully Microsoft get a fix ASAP as we are seeing considerable frustration from our users.

Hi, 

I though to post an update.

We have gone through MIcrosoft Support who have confirmed it is not a problem with our tenant, ut a bigger Microsoft issue.

The speed of fix is proportional to how much harm it is causing.  If you have this problem please log a ticket with Microsoft Via your tenant, or all your clients tenants.  This was explained as the measure Microsoft use to promote action priorities for know bugs.

 

Hope it get fixed soon.

 

Thanks for the confirmation. We also showed the bug to Microsoft support, who are now investigating.
@StewartAShark have you had any further information from Microsoft on this? I'm a bit surprised we haven't had much information or even an advisory in the admin center, given that our users aren't able to create documents while this bug exists.

@CallumCrowley 

Hi, Its still all quiet from Microsoft.  I agree we really need a fix soon as it is big restriction on service.  If I hear anything I will post.

Hi,
Our problem appears to have been resolved. Microsoft Support carried out a sync with our tenant and Content Types with Custom Templates are now working for new sites. Not all recently creates sites have automatically repaired, but after updating content types locally from the Site back to the Content Type Hub the custom templates, began working again.
Thanks for the update, I'm hoping we can get the same fix for our tenant.
Is that something we can do it by own or I need to contact Microsoft to perform the sync? Can you please share some more insights or steps to do this?

Hi, you will need to rise this with Microsoft via the M365 tenant administrator.  Microasoft will them be in contact to assist.@aakashdmaurya 

Get support - Microsoft 365 admin | Microsoft Learn