Answered Document ID's not unique in sitecollection!

  • Saturday, January 29, 2011 10:34 AM
     
     

    We have saved a site (which contains a document library) as a site template. The sitecollection has Document ID's enabled, and it works ok.

    Then we have created more (sub)sites whitin the same site collection from that site-template. The document-ID's of documents in the 'copied' sites are not working correctly. The documents do receive a document-ID, but when using the link, no documents were found. We see the document-ID's are not unique; the same ID's are generated in the different sites. 

    In mine opinion the document-ID's should be unique within the site collection?

    We have disabled the "Assign Document-ID" setting for the site-collection and later enabled it again. Also did a "reset all document ID's" whit a different prefix. But the problem remains. Is this a known bug? Please help.

Answers

  • Saturday, February 05, 2011 9:01 AM
    Moderator
     
     Answered

    Hello,

    I am afraid that the problem of document ID is getting duplicated in site/library created by a template has been identified as a problem with SharePoint Server 2010 and a known issue has been filed but our product group don’t have an estimate for how long it will take for a fix.

    Since attached list workflow isn’t included in the list template, a workaround is to convert the workflow to a reusable workflow or save the workflow as template. If the library is in top level site, you can convert the workflow to a global reusable workflow by clicking the SharePoint Designer “Convert to globally reusable” button on the ribbon so that the workflow should be available to use in any sites within the site collection. For details, please see:
    http://www.sharepoint4arabs.com/AymanElHattab/Lists/Posts/Post.aspx?ID=121

    Sorry for the inconvenience.

    Thanks & Regards.


    Lily Wu || Microsoft Online Community Support Engineer || SharePoint
    • Marked As Answer by Dirk-KSE Tuesday, February 08, 2011 9:56 AM
    •  

All Replies

  • Sunday, January 30, 2011 5:12 AM
     
     

    I have also came across few others having duplication issue may be in diffrent scenario.

    following article may be help for you

    http://www.hartsteve.com/2010/08/sharepoint-2010-document-id-non-uniqueness/

     

     


    Best Regards, Ashutosh | My Blog Site
  • Sunday, January 30, 2011 7:08 AM
    Moderator
     
     
    Ashutosh, that article is referring to "sending" documents to different site collections.  In that case, uniqueness doesn't apply, because they are separate site collections.  Unique IDs only are within the same site collection.  Of course, in the case of that article, the author expects SharePoint to assign a new Doc ID to that document when it goes into the new site collection.  In the case of this thread, the OP is creating new subsites from a site template within the same site collection.  You can't use different prefixes in the same site collection.
    SharePoint Architect || Microsoft MVP || My Blog
    Planet Technologies || SharePoint Task Force
  • Thursday, February 03, 2011 12:53 PM
     
     

    Update:

    I found that search is also not working for the documents in the "copied" document libraries. I think the issue is related because document-ID-links also use the search-index. Very frustrating, i think i have to setup the documentlibraries from scratch. Or is there a way to save a library as a template together with the attached list-workflow?

    Thanx for any help!

  • Saturday, February 05, 2011 9:01 AM
    Moderator
     
     Answered

    Hello,

    I am afraid that the problem of document ID is getting duplicated in site/library created by a template has been identified as a problem with SharePoint Server 2010 and a known issue has been filed but our product group don’t have an estimate for how long it will take for a fix.

    Since attached list workflow isn’t included in the list template, a workaround is to convert the workflow to a reusable workflow or save the workflow as template. If the library is in top level site, you can convert the workflow to a global reusable workflow by clicking the SharePoint Designer “Convert to globally reusable” button on the ribbon so that the workflow should be available to use in any sites within the site collection. For details, please see:
    http://www.sharepoint4arabs.com/AymanElHattab/Lists/Posts/Post.aspx?ID=121

    Sorry for the inconvenience.

    Thanks & Regards.


    Lily Wu || Microsoft Online Community Support Engineer || SharePoint
    • Marked As Answer by Dirk-KSE Tuesday, February 08, 2011 9:56 AM
    •  
  • Monday, May 16, 2011 11:05 AM
     
     
    Did the group come to any conclusions about this? We also have this issue... very annoying when this was one of the "big things" about Sharepoint 2010...
    //Daniel
  • Friday, August 26, 2011 7:01 PM
     
     

    Hello Lily,

    Has a patch been issued for this? Of it there a plan to address this soon?

    Regards


    Reehaz Soobhany
  • Friday, August 26, 2011 8:51 PM
     
     

    Steps to recreate Issue:

    1. Doc ID Service running on a Site Collection.
    2. Created a Library Template from an existing Document Library.
    3. Created a New library from the template on the same site as the Original Library.
    4. Uploaded a document.
    5. Unique Doc ID was assigned.
    6. Created another New Library on a Sub-Site of the site where the Original Library was created.
    7. Uploaded a new document to the New Library on a sub-site created from Library template.

    Unique Doc ID was assigned to the Document.
    Unable to recreate issue.

    Question:

    Are you looking at the SharePoint ID which is a whole number?
            If so, please note these IDs are assigned in the order in which the docs are added to the library. What makes the SharePoint ID unique is a combination of the GUID and the SharePoint ID.

    Are you moving the files or copying the files?
           Moving the files to a new library within the same site collection means that the file will retain the Document ID.
           Moving the files to a new library in a DIFFERENT STIE COLLECTION means the file gets a new ID. New prefix based on the Site Collection, The library ID could be the same and the ID number could be the same.

           Copying files to a new library would generate a new Document ID because the copy is a new file.

    Hope that helps.


    Tamara Bredemus SharePoint Minion...working up to Maven
  • Monday, August 29, 2011 10:38 AM
     
     

    Tamara, You are not getting the steps right, please see this link it explains how this is done.

     


    Reehaz Soobhany
  • Monday, October 24, 2011 6:18 PM
     
     
    Verified this is an issue with site template usage.  This should be a high priority item.
    RobertRFreeman
  • Friday, February 17, 2012 11:15 AM
     
     

    Hi Tamara,

    Do you know if this issue has been resolved yet?

    Kind regards,

    Raymond Peters ECM Consultant

  • Monday, February 20, 2012 8:57 AM
     
     

    @Tamara and others. To clear the fuzz.

    It all goes wrong when you save a site as a template including a self added document library. This document library will generate dubplicate Document ID's when items are added to this library in a new site that is created from this site template.

    The default document library of a site, 'Shared documents', does not have this problem.

    When you add a document library, from a template library with (custom)content types, to your site that is created from a template site, all your items(documents) WILL get unique Document ID's. This is a possible workaround, not the solution of the problem offcourse.

  • Monday, February 20, 2012 3:06 PM
     
     Proposed Answer

    Hi!
    I've found this behaviour as well. Started this thread, but maybe it's better to report it here.

    In my case, the error does ocurr at the self added "Shared Documents" library.
    Custom libraries, with custom content types, does seem to avoid this error. Anyone found a workaround how to prevent the same from happening at the "Shared Documents" library ? Out of the Box, I am contrived to use this default library, it's not deletable.

    Edit:
    This issue has been fixed on February 2012 Cumulative Update:
    http://support.microsoft.com/default.aspx?scid=kb;EN-US;2597150

    Assume that you save a site as a template and use the template to create a new site. Then, you add documents to a document library on the new site. In this situation, the documents on the new site have the same document IDs as the documents on the site that you saved as a template.

    • Edited by Nuno Aragao Thursday, March 08, 2012 11:50 AM
    • Proposed As Answer by Nuno Aragao Thursday, March 08, 2012 11:50 AM
    •