Forum Discussion

Patrick_K's avatar
Patrick_K
Copper Contributor
Nov 21, 2024

Content Type Gallery: Unexpected Error for document template

I created a document library for templates and linked it to my hub site. Then, I created a custom content type in the admin center.

After uploading a Word template to the library, I tried to associate the URL of the template with my custom content type. However, I encountered the following error:

"An unexpected error has occurred. Please try again later."

Here’s what I’ve tried so far to resolve the issue:

  • Adjusted the file format from .dotx to .docx
  • Shortened the URL to just the tenant address + filename + file format

Despite these efforts, the issue persists. Has anyone encountered a similar problem or have any suggestions for resolving this?

 

  • Brent Hutchings's avatar
    Brent Hutchings
    Copper Contributor

    I have also struggled with this; anyone know of any specific documentation on how to correctly enter the URL and the site requirements for the source document library?

    I know there are limitations with regards to where the source document library is. If I recall correctly it has to be in the same site or subsite of where the content type is created, meaning if I create the content type on a subsite, I can't use a link to a source document in a document library that is on another branch of the root site.

    In theory there is a way to do this by using the Content Type Gallery so you can link to a source template file in any document library regardless of site structure, but I still fail on providing a valid link.

    There is another thread on this topic, but it does not have a valid solution.
    Error when using an URL for document template in Content Type | Microsoft Community Hub

Resources