Friday, February 19, 2016

SharePoint 2013 Search: Search Crawl Errors after SQL Server 2012 SP3 Applied

After we applied SQL Server 2012 SP3, we noticed that the search crawls (which are mainly against Line of Business Data) where producing errors. The error was:

The content processing pipeline failed to process the item. ( Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index; ; 

After trying many things such as resetting index, recreating the content source, etc., I finally resolved the issue.

I needed to go into the Business Data Connectivity Services service application and Upgrade the External Content Type profile pages:

After I performed the upgrade, the crawls successfully completed with no errors.

Tuesday, November 10, 2015

SharePoint: White Screen of Death Troubleshooting

Anytime you get a white screen of death from SharePoint (as shown below), you are in luck!

Server Error in '/' Application.

The resource cannot be found. 
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. 

All you need to do is View the Source of the web page to find out the actual error or problem.

[FileNotFoundException]: File Not Found.
   at Microsoft.SharePoint.ApplicationRuntime.SPVirtualFile.CalculateFileDependencies(HttpContext context, SPRequestModuleData basicRequestData, ICollection& directDependencies, ICollection& childDependencies)

Usually the problems I have seen are a missing assembly or master page. 

Friday, January 9, 2015

SharePoint Online: Search Image Preview Confirmation

There have been some comments on my original postings in regards to image search results and previews of images not stored in picture libraries. The original post is here.

The issue now is does this work in SharePoint Online? There is no way to add file types to search in SharePoint Online. I was thinking that maybe, behind the scenes, they had this corrected and all would be good. Nope!

Picture libraries seem to have full support for all image types (at least the usual suspects - gif, jpg, png).

Example Preview of Image in Picture Library

Example Preview of Image in Document Library

So this just confirms that images that are not stored in picture libraries do not get rendered as images in search results. Right now the only workaround I would think is to modify the document item search template and look for the file extension - similar to what I originally did for Problem #2 in this post. (my original solution was not actually needed because of an early bug where image result types were set to show default items).

Wednesday, December 10, 2014

SharePoint 2013 Search: Error Launching Query Builder - RESOLVED

When attempting to launch the query builder when creating a new Content Source or Result Source via Central Admin you receive an error as follows:

Error: Not able to connect to search service to retrieve valid settings.

You need administrator rights to the Search Service Application - even if you are a farm administrator. (I just recently encountered this issue but thought it worked before - I am thinking that recent patches and updates plugged a security hole).

Solution Implementation - PowerShell
You can solve this easily by running the following PowerShell script with your account name:

$principal = New-SPClaimsPrincipal "DOMAIN\USERNAME" -IdentityType WindowsSamAccountName

$spapp = Get-SPEnterpriseSearchServiceApplication

$security = Get-SPServiceApplicationSecurity $spapp –Admin

Grant-SPObjectSecurity $security $principal "Full Control"

Set-SPServiceApplicationSecurity $spapp $security –Admin 

Solution Implementation - Central Admin
You may also solve this via Central Admin.

From Application Management, click on the Manage service applications link under the Service Applications section:

Scroll down to your Search Service Application and select it:

On the SERVICE APPLICATIONS top ribbon, click the Administrators button:

In the Administrators dialog, enter the account that needs permissions and click the Add button:

Select the account in the list and grant Full Control:

Click OK.

The Query Builder dialog will now launch properly without any trouble.

Friday, November 14, 2014

SharePoint 2013: Hiding the Blog Tools Web Part

You want users to have contribute rights to your blog site but do not wish to show the Blog Tools on the post pages. If you remove the web part, other blog web parts (e.g. Categories) do not work. If you modify the Blog Tools web part properties and select the Hidden property, the web part still renders.

Viewing the web part properties in the page (via SharePoint Designer) shows that the web part should not be visible and should be hidden:

Modify the Blog Tools web part properties as follows:

  1. Change the Height to a fixed height of 0 pixels
  2. Change the Chrome State to Minimized
  3. Change the Chrome Type to None

Click OK and Save (or Stop Editing) the page.

Refresh and the Blog Tools web part is still on the page but does not show!