Hot answers tagged

6

Enabling document id on a hierarchy of sites is not as straight forward as one should think. I have digged pretty deep into this one more than one occasion (might collect it to a blog post later), and it all boils down to the SPWorkItems that the timer job uses to enable document id on the sites/subsites and the timer job that sets the document id on each ...


5

Activating/Deactivating the feature on the root site worked for me: Site Actions > Site Settings > Site Collection Administration > Site collection Features > Document ID Service


3

The only time I've seen this happen I've had duplicate documents (usually with duplicate Document IDs). This was either caused by Actually having duplicate document IDs, seemingly caused by some defect in SharePoint Search not crawling the documents properly This may not be the cause of your issue, especially if you only have a single result, but have a ...


3

You can parse the ID parameter from query string in Dispform.aspx, once you have the ID value you can update "Add new Item" link and pass ID from DispForm.aspx. Please refer to Parse Query String from Javascript to parse URL and get value from Query String.


3

There are a couple of things you could check here. Check the Document ID settings (under site collection administration) to make sure its enabled here as well. If you click OK you it may tell you the job needs to process In central administration you can manually start the jobs associated with the appropriate web application. Go to Central Administation ...


2

maybe i misunderstood the question but it should be a matter of customizing the view and it is more a configuration than a customization. adding the 'Document ID' field to a view you get a column with a link: the description is the Document ID and the link itself is the url of the record (this is a url like ...


2

var file = web.GetFile("FULL_FILE_URL"); var itemId = file.Item.Id; web is the SPWeb object of the website where your file is kept.


2

You can create your own unique Id by combining (e.g. concatenating) the GUID of the sub-site, the GUID of the doc lib and the Id (int) of the item. For exemple, you upload a document to http://WebApp/sites/site01/subsiteA/TheDocLib. You can then get the Id of subsiteA, the Id of TheDocLib and last the Id of the file you've just uploaded: Id of ...


2

Depending on your settings, the newform.aspx page will either open in a dialog (iframe) or open in a new page. Here is how I address this issue in my SPELL library: I don't pass the ID in the URL, but instead I run a script on newform.aspx that follows these steps: When the new form opens, check the parent window if the parent exist (dialog), then the ID ...


2

The Document ID Service feature is enabled at the site collection level. Whether or not that site collection consumes content types from a hub is irrelevant. The document ID will get a prefix unique to the site collection (which can be changed). When the Document ID Service feature is enabled, the document ID column will be added to all documents created ...


2

Since the Document ID column is auto assigned, it is not editable, and will not show up under edit properties or as a document property in office. This is the standard behavior, so you are not missing any configuration.


2

You can get the ID from newFile, check out SP.File.listItemAllFields You'll need to include the property in your load: clientContext.load(newFile, 'ListItemAllFields'); Then you can access the ID with: newFile.get_listItemAllFields().get_id();


2

Using PowerShell you can get it using $site = Get-SPSite http://siteurl $provider = [Microsoft.Office.DocumentManagement.DocumentId]::GetProvider($site) $result = $provider.GetDocumentUrlsById($site, "DocID-1-1")


2

Once you check the Searchable checkbook and run a full crawl you should be fine. Since it is an ID with dashes word breaking may interfere with how the content it crawled, so you can also play with the Complete Matching setting. Complete Matching: Queries will only be matched against the exact content of the property. For example, if you have a ...


2

Marco, this is unfortunately functionality you need to "live" with. We created our own unique document ID service application that ensures document ID's are maintained through the lifecycle even when moved to the records centre. We also created a configuraiton page to allow unique numbering to be set at a content type level therefore you are not restricted ...


2

Based on what you describe, it would make more sense to reformat the search results to include the link to the documents the way you describe. By adding a calculated column to every single Document Library, you're incurring unnecessary overhead. In SharePoint 2007 search (I just haven't looked at 2010, but I'm guessing it's the same), the search results are ...


2

A list item could instruct the Document Id feature NOT TO re-generate its Identifier - this is controlled by a property known as PersistID column (column is hidden, does not render in views either - you would need a SharePoint Manager 2010 to look at it). Usually during move operations, SharePoint Server 2010 keeps the document ID, and only copy operations ...


2

The document IDs are assigned and updated based on a timer job. If deactivating and then activities the job did not update the Document IDs with the new path and info, I would focus on reviewing the status and result of the Timer Jobs. Please note that these jobs run daily by default, though they should also be triggered by the activation process. If they ...


2

Yes - you can use the file's GUID. Retrieve the GUID of an existing file using SPFile.UniqueId and open the file using SPSite.OpenFile(GUID).


2

We've recently released a free HTML Calculated Column; it acts just like a calculated column, but won't escape HTML: Pentalogic's SharePoint HTML Calculated Column To produce a clickable link, you'd use the following formula: ="<a href=\"https://portal/sites/search/Pages/results.aspx?k="&[Document ID Value]&"\">Link</a>" Disclaimer: ...


2

actually this is much easier than the options above. if you set the data type returned by the calculated column to be Number, then it is interpreted as HTML. see this link for more details: http://sharepoint.rackspace.com/calculated-columns-tutorial


2

I tried this in SharePoint 2013 Online but didn't work ="<a href=\"https://portal/sites/search/Pages/results.aspx?k="&[Document ID Value]&"\">Link To Document</a>" It doesn't like the \". As a workaround use single quotes for the URL as follows ="<a href='https://portal/sites/search/Pages/results.aspx?k="&[Document ID ...


1

Remember the Limitations ONLY content types that are derived from the Document Content Type will have unique ID’s enabled, no list items will get id’s assigned :evil:


1

There is CodePlex project I used to solve something similar: Lookup Field with Picker 2010 Features Single- and multi-Selection Mode Cross site picking Search in picker dialog Search Operators: equals, not equal, contains, begins with, greater than, greater or equal than, less than, less or equal than. Select fields you would like to ...


1

_dlc_DocId is the internal field that has allows you to change or retrive the document id. also agree with row limit. but if a newly created/uploaded document as in version 1. then maybe insted of modified you can use created kind regards


1

I had a similar problem with PDF documents and clicking their DocumentID link. In that case, it turned out to be that the PDF file type (or in your case, the EMF file type) was not listed in the File Types section of the Search Service Application in SharePoint 2010's Central Administration. Edit: I believe we also rebuilt the search index once this new ...


1

I am presuming that you have followed activating the Document ID Feature as described in your links above and/or here - SharePoint 2010 – Activating the Document ID Feature. And also, recycling the timer jobs. The next would be to examine if the Document ID feature has been properly deployed to your Documents library. You could use the SharePoint 2010 ...


1

You could use the Document ID Service that will uniquely identify a document. This will generate a unique identifier for the document and give it a distinct URL, from the referenced blog post, it'll look like, http://sitecollectionurl/_layouts/DocIdRedir.aspx?ID=MFSHF5F7ZUF5-1-1.


1

Are these documents stored in a document library? The list entry ID will never change, no matter how many times you change the name, meta data, etc. So you can always use a link such as http://sitecollection/library/forms/dispform.aspx?id={0} to show the "View Properties" screen for any file; there people can view the meta data and/or open the file.


1

Apparently patience is the answer. I've done the whole shibang: activated the Document ID feature, started both timer jobs manually (I did however change the timings on both to 30 minutes), and after seeing nothing for about 15 - 30 minutes, suddenly the document ID's started showing up...



Only top voted, non community-wiki answers of a minimum length are eligible