Wednesday, June 13, 2012

SharePoint - Unable to browse large document library in explorer view

Problem
You try to open a document library with many files by clicking on ‘Open in windows explorer’
OR
When you try to save your word document directly to sharepoint as shared drive.



and get the following error message:

Solution
 The problem occurs because the size of all the file attributes that are returned by the WebDAV server is much larger than what is expected. By default, this size is limited to 1 MB.

To work around this problem, you need to modify the windows registry on the client computer.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters\
Value:
FileAttributesLimitInBytes
Data Type: DWORD
Default Value: 1,000,000
decimal (1 MB)

Change the default value to a larger number, e.g. 100000000 for 100mb.

SharePoint Search Results shows first line instead of Title field of Document


Office documents stored in SharePoint 2010 which have their title field populated show an incorrect title in the default search results. The screen shot below shows the search results for the following document:
Filename: Test document 1.docx 

The title that is displayed as the link to the document at the top of the individual search result is the first line of text from the document, not the title (metadata) field. If title field for the document is not set, the filename is displayed as the link to the document at the top of the individual search result, not the first line of text from the document.
As per Microsoft it is normal behavior as it tries to give you more relevant result to your search.
To correct this behavior:
  • Edit the ‘EnableOptimisticTitleOverride’ key and modify its value to 0:
  • Open registry editor
  • Navigate to HKLM\SOFTWARE\Microsoft\Office Server\14.0\Search\Global\Gathering Manager
  • Restart the SharePoint Server Search 14 service at admin command prompt.
    1. net stop osearch14
    2. net start osearch14
  • Repeat the above steps for all SharePoint servers in the farm.
  • Perform a full crawl on the SharePoint content source(s)
Once the full crawl has completed, performing the search again gives the title field as the search result title for a document which has the title field populated
The following can be copied into a .reg file to automate setting the key, or the key could be set using PowerShell:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\14.0\Search\Global\Gathering Manager]
"EnableOptimisticTitleOverride"=dword:00000000

Please leave your comments/feedback.