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

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 >...


3

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 Value]&...


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.


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

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

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

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

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

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

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 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

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

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

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 'http://yoursite/_layouts/15/DocIdRedir.aspx?ID=...


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

var context = SP.ClientContext.get_current(); var selectedItems = SP.ListOperation.Selection.getSelectedItems(context); var fileName = []; for (var i = 0; i < selectedItems.length; i++) { var itemId = selectedItems[i].id; fileName[i] = GetName(itemId); } function GetName(itemId) { var currentList = context.get_web().get_lists()....


2

Document ID enable/disable job This will process all work items on all site collections in a web application, and make sure that Document ID prefix is pushed to all subsites. Document ID field will be added to all content types which inherit from Document and Document Set. More precisely, three fields will be added: Document ID, Document ID Value and ...


1

Yes, create a managed property for the field and call it e.g. ArticleID. Then map the crawled property for the field with the id: 1d22ea11-1e32-424e-89ab-9fedbadb6ce1 to the managed property ArticleID. Then you can search for ArticleID:123 in the searchcenter or with a search webpart and get the item.


1

My issue resolved. thanks for your effort and reply. Explanation: I have "Link to Document" content type. Before asking the question I was thinking that "Link To Document" content type will have link of document Eg: "http://{yourserve}/{documentLibrary}/ABC.txt" . After creating the link, original document name can be changed (i.e. ABC.txt to ABC1.txt )...


1

DocumentId is populated by "Document ID Service" feature in SharePoint that can be turned on and off at the site collection level which means that the field may or may not be populated. When active, it provides a way to locate the document regardless of its current name or location. Item Id provides a unique integer for the document within a specific list ...


1

Though this is a very old post, but the duplicate docId issue still exists with SharePoint 2010. Recently Microsoft added a fix for this in August 2015 CU. Explained here - http://code2care.org/2015/sharepoint-2010-august-2015-update-kb3055049-duplicate-document-id-issue-bug-fixed/


1

OK, So I figured out a solution to this problem. I really don't know what caused it (I am thinking someone made a copy or something and for whatever reason when they uploaded the copy SharePoint didn't change the ID) because I wasn't able to reproduce the issue with newer documents. The solution: Find your doucments with non-unique ID’s either by ...


1

When you add these queries together, ensure that you make the ViewFields work so that if an item won't have a particular Field on it that field is marked as Nullable. e.g. <FieldRef Name='SomeFieldOrOther' Type='URL' Nullable='TRUE'/> i.e. do you have ViewFields specified for items returned by Query 2 that are not available on items returned from ...



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