Friday, 30 December 2011

Search crawl stuck on "Crawling full" and crawl log returns nothing

After setting up a new SSP in a new farm we kicked of the search crawl from the standard "Local Office SharePoint Server sites" content source. We had a lot of content to crawl so we anticipated it lasting a couple of hours. What we did not anticipate was it still running in the morning when we had come in the night before.

When checking the crawl log there was nothing returned.
The crawler appeared to be stuck on "Crawling Full".

Solution:
A glorious IIS reset and a recrawl. I appreciate this might be a somewhat trivial point but if you have neglected to do one recently it might be worth giving it a try before you attempt some of the more elaborate solutions online.

SharePoint is a state of mind.

Wednesday, 2 November 2011

Sharepoint 2010 : Content type hub not publishing name change

I was trying out the content type hub amazingly for the first time the other day. I found some nice posts on how to configure it which was reasonably straight forward.

Once I had created a content type in the hub I was able to publish it to another site collection successfully after running the "Content type hub" and appropriate "Content site subscriber" timer jobs.
After this point I though I would try an update to the source content type. I changed the name and re-run the timer jobs. My subscribed content type name was not updated.

It turns out that content types must be republished once they have been changed. This is available under the "Manage publishing for this content type" link. Once I had done this and re-run the services my subscribed content type updated making me feel much better about life in general.

Tuesday, 25 October 2011

Microsoft Certified in SharePoint 2010

So today I completed my 4th SharePoint 2010 exam. This allows me to call myself both an MCITP (Microsoft Certified IT Professional) and an MCPD (Microsoft Certified Professional Developer).

Now I must admit I am not the biggest fan Microsoft exams as a way of testing ones knowledge but in an attempt to inflate my own ego I thought I would blog it anyway.

So now to become a master.....maybe next year.

Tuesday, 18 October 2011

SharePoint 2010 : Could not find feature BizAppsListTemplates

Hola,

My requirement was to back up a sub site (ie SPWeb) from one environment and restore it to another environment (which had the same features / site content types etc). I exported a site (SPWeb) from the source environment utilizing the granular back up capabilities accessible from the central admin GUI.

The import to the destination environment was conducted using the following command:

Import-SPWeb -identity http://mywebsite -path C:\mypath\myfile.cmp

After a short time the import failed and displayed the following message:

"Could not find feature BizAppsListTemplates."

There were a number of posts out there relating to this but not one had the solution I required so I thought I would blog it. One post suggested rebooting and so after trying that I decided to follow my heart and look for the actual feature.

I saw that the feature was located in the 14 hive so wanted to check that it was installed correctly.

I fired a reinstall command for the feature:

stsadm -o installfeature -name BizAppsListTemplates

This solved the reported issue.

Great news all round. I love you SharePoint once more. I know what you are all thinking though....why wasn't the feature installed in the first place? I have no idea yet......... if I ever find out I will let you know.

Wednesday, 31 August 2011

Sharepoint Dev TIP: Windows 7 services with SharePoint 2010

Hey all,
so we all have SharePoint 2010 with SQl on our 8GB dev machines (yay). A lot of the time I don't require this functionality (due to remoting to other environments) so it would be good to be able to stop a load of things to free up resources.
I have created two simple scripts which I use to turn services on and off. I appreciate that these are simple and are probably not necessarily definitive but its a good start.
Copy the commands, save as a .bat file and you are off.

StopServices.bat
echo Stopping sql server
C:\Windows\System32\net.exe stop mssqlserver
echo  sql server stopped
Echo stopping Sharepoint timer (OWSTIMER)
C:\Windows\System32\net.exe stop SPTimerV4
Echo Sharepoint timer (OWSTIMER) stopped
echo  Stopping iis
C:\Windows\System32\iisreset.exe /stop
echo  iis stopped
pause

StartServices.bat
echo Starting Forefront Identity Manager Service (Cos it got shut down in the sql stop
C:\Windows\System32\net.exe start FIMService
echo Forefront Identity Manager Service Started
echo Starting sql server
C:\Windows\System32\net.exe start mssqlserver
echo  sql server started
Echo Starting Sharepoint timer (OWSTIMER)
C:\Windows\System32\net.exe start SPTimerV4
Echo Sharepoint timer (OWSTIMER) started
echo  Starting iis
C:\Windows\System32\iisreset.exe /start
echo  iis started
pause

Monday, 18 July 2011

Sharepoint 2010 : Create a mysite for each SharePoint profile (Powershell)

So we have spent an amount of time (hopefully not too much ha) configuring the User profile service and the synchronisation which imports profiles from AD. Our filters are in place so we only have valid profiles.

For the next step we would like to automatically create all the mysites in one hit.

This may or may not be a good idea depending on your exact business requirements but if it is what you want here is a script which will iterate through the profiles and create you a my site for each user.

$site = new-object Microsoft.SharePoint.SPSite("http://mysitehost"); 
$ServiceContext = [Microsoft.SharePoint.SPServiceContext]::GetContext($site); 


$ProfileManager = new-object Microsoft.Office.Server.UserProfiles.UserProfileManager($ServiceContext); 
$AllProfiles = $ProfileManager.GetEnumerator();


foreach($profile in $AllProfiles) 
{ 
  
     $profile.CreatePersonalSite();
}


Great fun don't you reckon.

Friday, 15 July 2011

SharePoint 2010 : Managed metadata refinement is missing from Search results

Problem
  • Search service application was indexing correctly
  • Out of the box Search site was returning content correctly as expected
  • Some search refiners were missing. Specifically the ones mapped to Managed metadata and  enterprise keyword columns.
Solution
 
After hunting about for a whole I found the solution which was actually very obvious on reflection but not so obvious when you have a farm sat in front of you.
 
Within the Search Service application, a crawl rule had been created which was set to include some items. There is a setting in there when including items to a specific path as follows:
  • Crawl SharePoint content as http pages
This was checked. After unchecking it and re-crawling the metadata refinement options were presented as expected. Obviously having it checked means that no metadata on documents and the like was being indexed.

As advised. Very simple and obvious. Once you know the solution