SharePoint Resource

The latest insights from the SharePoint Experts

Archive for the ‘SharePoint Deployment’ Category

“Some or all identity references could not be translated” error when creating SharePoint 2010 web application.

Posted by lukecostin on April 26, 2012

I ran into a small but annoying issue yesterday while setting up a web application for one of our SharePoint 2010 environments.
The issue in question stated “Some or all identity references could not be translated” when it attempted to set up a web application using the AutoSPinstaller scripts as shown below.

Identity error

The issue can also occur when you attempt to register an account in the “Managed Account” Central Administration page.
After some investigation, I found that the reason for the issue was that the account name (along with it domain prefix) was exceeding 20 characters, which is the limit for all managed accounts.

If you change the managed account you are using to one below 20 characters (For example, changing the managed account from Domain\ServiceAccount15 to Domain\Servacct15) you should not experience this issue anymore.

Posted in SharePoint, SharePoint 2010, SharePoint Deployment | 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 »

Timer job: No changes after deployment

Posted by niknovotronix on August 31, 2011

Ever re-deployed a timer job in SharePoint without any changes being made (even after GAC deployment and “iisreset”)?

Remember to restart the “SharePoint 2010 Timer” Service as well after deployment for changes to be made immediately.

Posted in SharePoint 2010, SharePoint Deployment, SharePoint Development | 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 »

 
Follow

Get every new post delivered to your Inbox.

Join 48 other followers