Forum Discussion
My Content Type instances have duplicate Document IDs (dlcdocid).
Hi, I have a Documents library with Content Types enabled, and with the Document ID service enabled. However new documents do not have a unique ID, but all get assigned the same ID as the content type template.
The setup
- I enabled Document ID service via the Site Collection Features:
https://<domain>.sharepoint.com/sites/<sitename>/_layouts/15/ManageFeatures.aspx?Scope=Site - I enabled and configured content types.
- I created a Word template in the SharePoint library, and used Insert > Quick Parts > Document Property to create form fields sync'd with the Library/content type columns (Description, Project, Status).
- I downloaded the Word template from the same library into my OneDrive sync'd location, and uploaded it to the site collection's Content Types https://<domain>.sharepoint.com/_layouts/15/online/AdminHome.aspx?modern=true#/contentTypes and sync'd to the site content types.
- I created documents in the library using the "New" menu.
Later I ask the user or reviewer to update the document frontsheet with the dlcdocid (Insert > Quick Parts > Document ID value, or Insert > Quick Parts > Field... > DocProperty > _dlc_DocId) as well as the SharePoint Version using the policy label method (https://learn.microsoft.com/en-us/answers/questions/5146555/sharepoint-label-to-embed-version-in-word-doc-havi) via Insert > Quick Parts > Document Property > Label.
The Problem
In the Documents library, new Word files are being re-assigned the original dlcdocid of the template (say DOCUMENT-0123456789-5). Now the "unique" URL shows me a list of multiple files all with DOCUMENT-0123456789-5. This is a read-only field so I cannot edit or delete the IDs.
I want to have a Content Type template, with the frontsheet/header/footer fields sync'd with the Library columns, but I also want each document to have a unique ID and version.
Help requested
- Is there a way to fix the template to clear the template ID, and to avoid this issue on future templates?
- How should I replace the template?
- Is uploading Template copies to the Content Type bad?
- Should I instead point to the file URL? Does it matter where the Template file is stored?
- Are there any ways to reset the ID of the few existing documents with the duplicate value?
1 Reply
- virendrakIron Contributor
I’m not sure I fully understood your question but let me share my experience.
First, I’m not completely sure where you enabled the Document ID feature, but this part is important. If you’ve turned it on in the Content Type Hub site collection, that’s usually not recommended. My suggestion is: do not enable the Document ID feature in the Content Type Hub. Instead, enable in the Teams sites where you are actually creating and storing documents for collaboration.
I never upload the template into the Content Type Hub and keep the default template there. However, in the target site / library where I’m using that content type, I upload the template using the Add Template option at library level.
For template management, I always maintain a separate site - Templates and Forms Center, where the Document ID feature is not enabled. The reason is simple: you don’t have control over how IDs are stamped in templates, and this avoids duplication issues.
Another point: for metadata, I keep things very specific. For example, in my Templates library I don’t use a generic column like Status. Instead, I create a column called Template Status, because in my target library the meaning of Status might be different. But if there’s a property I want to be inherited into documents created from the template, I use the same column name in both locations. That way, the property flows correctly from the template into the document.
Here is the solution for your issue, please try it and let me know if it works.
- The Document ID service assigns IDs when a document is first added to a library. If your template file already has a Document ID property embedded, new documents created from it will inherit that value. Because the Document ID field is read‑only, you can’t manually clear or overwrite it once it’s stamped.
- Clear the Document ID from the Template and Upload the clean template (without Document ID) to the Hub.
- Open the template in Word.
- Go to File > Info > Properties > Advanced Properties > Custom tab.
- Look for _dlc_DocId or related fields.
- Delete those custom properties.
- Save the template back to the Content Type gallery.
- This ensures new documents don’t inherit a fixed ID.
- Unfortunately, you cannot directly edit the Document ID field.
- Options:
- Clear Document ID and Re‑upload the documents:
- Download template locally, Open the template in Word.
- Go to File > Info > Properties > Advanced Properties > Custom tab.
- Look for _dlc_DocId or related fields.
- Delete those custom properties.
- Upload the template back to the Content Type gallery.
- This ensures new documents don’t inherit a fixed ID.
- Use PowerShell/CSOM/Graph API: Admins can script a re‑index or re‑assignment (any different value) of Document IDs by forcing the Document ID service to re‑run.
If my post solved your issue or answered your query, please mark it as a Solution and give it a Like.