SharePoint Resource

The latest insights from the SharePoint Experts

Author Archive

Blog URL Changing

Posted by Gary Powell-Jones on January 3, 2012

The url for the Novotronix blog will be changing from http://sharepointresource.com to http://sharepoint-comments.com
Please update any permalinks that you may have

Posted in General | Tagged: | Leave a Comment »

SharePoint Error after moving databases

Posted by Gary Powell-Jones on September 12, 2011

A lot of people have experienced issues after moving databases (especially the configuration database)

The typical message when trying to run an stsadm command, or some Central Administration pages is…

“System.ArgumentNullException: Value cannot be null.Parameter name: str at System.Security.Permissions.FileIOPermission.HasIllegalCharacters(String[] str)”

 

One cause for this could be that the timer service has not reconnected to the Configuration Database.

The timer service has a local cache of all jobs stored in %systemdrive%\documents and settings\all users\application data\microsoft\sharepoint\config, in a folder with a GUID name. (on SharePoint 2010 it is $systemdrive%\users\all users\application data\microsoft\sharepoint\config. Note that this is a hidden folder

This folder will contain a file called cache.ini and many XML files.

First possible issue..

As noted in http://technet.microsoft.com/en-us/library/cc561004(office.12).aspx the SharePoint application groups may have ‘lost’ permissions (although the article has the wrong path). TheWSS_ADMIN_WPG and WSS_RESTRICTED_WPG require write permissions to this folder. Stop the SharePoint Timer service and Administration service, grant the permissions and re-start the services.

Second possible issue..

We have seen this once. The server registry lost the record of the configuration database ID. This is stored in HKEY_LOCAL_MACHINE\Software\Microsoft\Shared Tools\Web Service Extensions\12.0\Secure\ConfigDB (or 14.0 for 2010). There should be a REG_SZ key called Id. The value of this key should match the name of the folder in the %systemdrive%\documents and settings\all users\application data\microsoft\sharepoint\config folder.

In the case we saw, the value of this key was 00000000-0000-0000-0000-00000000000000

As above, we changed stopped the services, changed the key, and restarted the services.

Important note – Editing the registry can be a dangerous task & is done at your own risk

 

Posted in SharePoint, SharePoint Deployment | Leave a Comment »

Exporting the Search Crawl Logs

Posted by Gary Powell-Jones on July 21, 2011

The SharePoint search logs can be powerful, highlighting issues either in the search configuration or content. These are displayed within the browser, but sometimes you need to run deeper analysis on the SharePoint search crawl logs.
There is no built-in way (that I know of) to export the crawl log, but PowerShell can help us.

Below is a simple script to do this. The script will obtain all of the error codes, itterate them, gather the logs for the error code & then finally export everything to a csv file.
Note that this script excludes error codes 0 & 1 ( success and deletes) as I only wanted to look at errors.


# Change the name of the Search Service to that in use on the server
$ssa = Get-SPEnterpriseSearchServiceApplication | Where-Object {$_.Name -eq "Search Service"}
$logViewer = New-Object Microsoft.Office.Server.Search.Administration.Logviewer $ssa
$ErrorList = $logViewer.GetAllStatusMessages() | Select ErrorId
Foreach ($errorId in $ErrorList)
{
If ($errorId.errorId -eq 0 -or $errorId.errorId -eq 1)
{
}
else
{
$crawlLogFilters = New-Object Microsoft.Office.Server.Search.Administration.CrawlLogFilters
$crawlLogFilters.AddFilter(“MessageId”, $errorId.errorId)
"Processing Error Code : " + $errorId.errorId
$startNum = 0
$errorItems += $logViewer.GetCurrentCrawlLogData($crawlLogFilters, ([ref] $startNum))
Write-Host "Processing $startNum"
WHILE($startNum -ne -1){$crawlLogFilters.AddFilter(“StartAt”, $startNum);$startNum = 0;$errorItems += $logViewer.GetCurrentCrawlLogData($crawlLogFilters, ([ref] $startNum));Write-Host "Processing $startNum";
}
}
}
$errorItems | Export-CSV crawllog.csv

Posted in Powershell, SharePoint 2010, SharePoint Deployment, SharePoint Search | Leave a Comment »

Configuring the User Profile Service in Central Administration

Posted by Gary Powell-Jones on May 11, 2011

Details on how to configure the User Profile service using Central Administration. Ordinarily we would advocate congifuring this as part of an automated installation process, or at least using using PowerShell. However, we have been requested about details on how to do it using Central Administration.

Read the rest of this entry »

Posted in SharePoint 2010, SharePoint Deployment | Leave a Comment »

Automating the installation of SharePoint

Posted by Gary Powell-Jones on April 8, 2011

We strongly subscribe to the principal of automating the installation of SharePoint within any environment. We quite often get asked as to why this is so important to us, so this article aims to give some reasons behind this.
Read the rest of this entry »

Posted in SharePoint, SharePoint 2010, SharePoint Deployment | Leave a Comment »

 
Follow

Get every new post delivered to your Inbox.

Join 48 other followers