I have a document library in SharePoint 2013 that has a few documents with the same document ID. Is there anyway I can regenerate this without reuploading the documents?

I've tried the fix mentioned here for SharePoint 2010 but that didn't work.


you can reset the all document Id in a site please look at this post


  • Will this give me new document ID's for all existing documents that don't have duplicates. Apr 26 '17 at 5:50
  • Yes. you will get new document id for all documents Apr 26 '17 at 7:35

There is no option to do so in the UX! But you can update a Document ID programmatically. The ID is stored in the list item field named _dlc_DocId and the redirect link in _dlc_DocIdUrl. Using the SharePoint PnP PowerShell cmdlets, you can easily regenerate your duplicate Document IDs like I'm doing in the example below:

Connect-PnPOnline -Url https://hostname/sites/site
$file = Get-PnPFile "Shared Documents/Test.docx"
$file.ListItemAllFields["_dlc_DocId"] = "YourNewID"

You do not need to update the _dlc_DocIdUrl value as the Document ID event receiver will in turn update and align it with the new ID. However, beware that the Document ID redirect link will not work until search has reindexed the document!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.