Sep 04 2023 01:27 AM - edited Sep 04 2023 08:09 AM
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:
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:
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.
After clicking the content type from the "New" menu, a new document will be created using the document template for that content type.
Sep 04 2023 10:59 AM
Sep 04 2023 12:12 PM
@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
Sep 04 2023 12:22 PM
@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.
Sep 04 2023 12:53 PM
Sep 04 2023 01:26 PM
Sep 05 2023 04:53 PM - edited Sep 05 2023 04:54 PM
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.
Sep 07 2023 07:13 AM
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.
Sep 07 2023 08:02 AM
Sep 08 2023 04:10 AM
Sep 08 2023 06:10 AM
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.
Sep 11 2023 05:40 AM
Sep 11 2023 05:47 AM
Oct 18 2023 04:14 AM
Oct 23 2023 01:51 AM
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