Friday, 22 August 2014

THE EXECUTE permission was denied on the object 'proc_GetProductVersions' Database '_Config', schema 'dbo'.

We had an issue where search was being used as a core component on the home page for one of the solution's. On further research we identified the it was an access issue on the database side. We are using SharePoint 2013 Enterprise Search which is on Always on Availability Group.

Here are the two errors we got

Error 1: 'The EXECUTE permission was denied on the object 'proc_MSS_GetLease', 

Error 2: THE EXECUTE permission was denied on the object 'proc_GetProductVersions' Database '_Config', schema 'dbo'.

For the Error 1, the search service account needs to have access on SPSearchDBAdmin role on the following databases
  • _Search
  • _Search_AnalyticsReportingStore
  • _Search_CrawlStore
  • _Search_LinksStore
For the Error 2, the search service account needs to have  access on WSS_Content_Application_Pools role  for the following databases 


  • _Config
  • _Admin

After giving the access, bounced the IIS , issue resolved for us. Check the logs to identify the problem.

Saturday, 5 April 2014

SharePoint 2013 Service Pack 1 Withdrawn

Microsoft has withdrawn Service Pack 1 from general public availability as it will block or won't allow future public or cumulative updates  from installing. There are no other issues reported as per the notes. They are going to release a new version of Service Pack in future no timeline defined for this yet.

There are no clear notes about how to roll back for clients who have already implemented it on their farms.

The download links are broken.

A call with MS Support team may guide them on next steps stay tuned.

Service Pack 1 Update on 08/04/2014:  Checked with  Microsoft's Technical Account Manager and subsequently a call with Suppor Team. "Guidance is not to rollback as the existing Service Pack 1 won't affect anything apart from stopping future upgrades. Once the re-released version of Service Pack 1 / hotfix is available , customers can install it. There is no ETA on the release date" .


"We have recently uncovered an issue with this Service Pack 1 package that may prevent customers who have Service Pack 1 from deploying future public or cumulative updates. As a precautionary measure, we have deactivated the download page until a new package is published. "

Links: 

http://support.microsoft.com/kb/2817429/en-gb

http://blogs.technet.com/b/office_sustained_engineering/archive/2014/02/25/announcing-the-release-of-service-pack-1-for-office-2013-and-sharepoint-2013.aspx

Service Pack 1 Update: Microsoft has re-released a newer version of the service pack with the fix i.e. to allow installing future CU's. The challenge we had was to re-install newer version of service pack 1 on all of our SharePoint Farms which comprises of 40 plus servers. I would have expected Microsoft to release a hot-fix for customers who have already installed Service Pack instead of going for a full blown deployment of Service Pack. This caused enormous time to coordinate the deployment of service pack going through CAB, deployment etc.




Friday, 4 April 2014

SharePoint 2013 Service Pack 1 Fails

Rolled out Service Packs on  6 DEV Servers , Shared Services UAT farm all went well apart from couple of niggling issues like the following but overall it was successful:

Search Host Controller Service stuck in Starting State
User Profile Sync Service stuck in Starting state

Those were pretty straight forward to fix but the killer one appeared on the Pre-Prod environment which connects to Production domain controller. Everything looked good  till we ran Product and Config Wizard I reckon that's where all the Fun starts huh :). Failed at the Last step.

“   Unable to create a Service Connection Point in the current Active Directory domain. Verify that the SharePoint container exists in the current domain and that you have rights to write to it.
Microsoft.SharePoint.SPException: The object LDAP://CN=Microsoft SharePoint Products,CN=System,DC=emea,DC=cbre,DC=net doesn't exist in the directory.
   at Microsoft.SharePoint.Administration.SPServiceConnectionPoint.Ensure(String serviceBindingInformation)

   at Microsoft.SharePoint.PostSetupConfiguration.UpgradeTask.Run() “

The container Microsoft SharePoint Products was missing in ADSI Active Directory Service Interface Editor

As it's a Shared Services environment and so many install / farms account and Pre-Prod environment for Shared Services leveraged across Intranet and Extranet farms,  it made sense to create an Active Directory Group called as SharePointFarmAdmins and add all install and farms accounts in it.

Once that was done, our AD guy created the container and granted the required ( write on the container ) permissions to SharePointFarmAdmins group. 

Re-ran the Product Configuration Wizard success. 

There are some specific Power Shell command let's which allows you to Get  and Set the Service Connection Point SCP which you can run from SharePoint 2013 Management Shell. 

To Get: 

Get-SPFarmConfig -ServiceConnectionPoint 

To Set : 

 Set-SPFarmConfig -ServiceConnectionPointBindingInformation StringwithBindingInformation


To create the Microsoft SharePoint Products container in ADSI  ,  follow the instructions from here: http://technet.microsoft.com/en-us/library/ff730261(v=office.14).aspx

The roll out of Service Packs , Cumulative updates , solutions  etc.. to go through a SDLC process etc.... emphasizes the importance of having a Pre-Prod environments which I have seen some organization ignores due to cost related issues or awareness of how it will play a pivotal role.

PS: Make sure WSS Usage DB is not part of Always On Group in case you're using Availability Groups in SQL Server 2012

Thursday, 6 March 2014

SharePoint 2013 PowerPivot Configuration Tool: the user is not a farm administrator

Got this error while configuring the PowerPivot Configuration Tool  on the Development environment using a Developers account setup with farm account permissions

SharePoint 2013 PowerPivot Configuration Tool  the user is not a farm administrator

It was  quite bizarre the Developer's account had all the required rights on SQL Server , Local Admin on the box and Part of Farm Admin Group.

After further research tried running the PowerPivot Configuration Tool using Farm Account it didn't give any errors. Found that you need to be a Site Collection Administrator of Central Admin in order to run the PowerPivot Configuration Tool successfully.

Performed the following steps to resolve this

Launch the Central Admin
Go the Site Settings  > Site Collection Administrators
Add the User Account you're using to run the PowerPivot Configuration Tool  as Site Collection Admin
Click Ok

This resolved the issue was able to run the PowerPivot Configuration Tool Successfully.


Wednesday, 26 February 2014

User Profile Replication Service : Can not access Destination web service SharePoint 2013 farms

Got the error Start-SPProfileServiceFullReplication : Can not access Destination web service whilst performing one way User Profile Replication between two SharePoint 2013 farm's for About Me and PictureURL properties This worked beautifully whilst performing the Replication on Pre-Prod Farm but not on Prod farms

Did check various bits and pieces for permissions for the farm account as listed on various blogs but was of not much help. 

Performed the following steps to resolve this

Launch SharePoint 2013 Management Shell

Changed the Directory to  C:\Program Files\Microsoft\SharePoint 2010 Administration Toolkit\Replication Engine

Added the PS Snap in

Add-PSSnapin Microsoft.Office.Server.AdministrationToolkit.ReplicationEngine

Tried the command 

Start-SPProfileServiceFullReplication -Destination https://mydestination.contoso.com  -Source http://mysource.contotos.com -EnableInstrumentation -MaxNumberOfThreads 15 -Properties "AboutMe", "PictureURL" -DoSocialReplication

Didn't work, tried accessing the My Site from the server that didn't load even though loop back was disabled.

Was able to access My Site User Profile Service from an end user machine which indicated there was no issue the web service as it was accessible.

Found that the Proxy Server in Internet Explorer Connection Settings was enabled and set to the proxy server on the Front End server from where I was running the command.

Disabled the Proxy in IE, executed the command again boom replication started and was successful

At times there are some specific settings which cause the issue. Another day another dollar.

User Profile Synchronization Service stuck in stopping state in SharePoint 2013 farm

We had this issue of User Profile Synchronization Service stuck in stopping state in one of the  SharePoint 2013 farms. Performed the following steps to resolve this.

Log on to the Server where User Profile Synchronization Service was stuck in stopping state.

Make sure the Forefront Identity Manager and Forefront Identity Manager Synchronization Service are using the farm account as the service account

Launch SharePoint 2013 Management Shell

Get the GUID for User Profile Synchronization Service
Get-SPServiceInstance | Select-Object TypeName, ID

Check the status of User Profile Synchronization Service

Get-SPServiceInstance -Identity GUIDOfUserProfileSynchronization

To stop this , type the GUID of User Profile Synchronization Serviec

Stop-SPServiceInstance -Identity GUIDOfUserProfileSynchronization

IISRESET on the front end servers.

Spencer Harbar's article is a must read to understand and troubleshoot the issue.

Wednesday, 5 February 2014

Failed to load protocol handler OSearch15.HttpHandler.1. Error description: The parameter is incorrect.

Got this error on one of the development machine on SharePoint 2013 while crawling a content source for SharePoint sites.
 
Failed to load protocol handler OSearch15.HttpHandler.1. Error description: The parameter is incorrect.
 
SharePoint Search Content Account had Full Read access on the Web Application.
Tried various steps starting , restarting the following services in the hope this may resolve the issue
 
  • SharePoint Server Search 15
  • SharePoint Search Host Controller
  • SharePoint Timer Service
IISRESET

None worked.
 
Tried stopping and starting the following from Manage Services on Server from Central Admin, no go
  • Search Host Controller Service 
  • Search Query and Site Settings Service 
Deleted the Search Service Application, Proxy and Re-created the Search Service Application with new Search Proxy

Same error while crawling the Content Source for SharePoint sites.
Deleted the Search Service App Again

Launched ULS Logs while re-creating Search Service Application.

Found that Indexer was already there on C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\Applications for the old rogue Search Service App and search had to re-create a new one and there was some conflict

Deleted Search Service App one last time

Took a copy of all the files at C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server\Applications
Deleted all the files from here

Re-created the Search Service App with new Proxy and specified the Index file path to different location i.e. D:\Index\ via PowerShell check MSDN for the commands

Deleted the Search Center site , re-created a new one

Ran the crawl , worked fine without any issues.

This solution may not work in your environment, check the ULS to identify and troubleshoot the issue.

Tuesday, 4 February 2014

Getting results failed: Microsoft.Office.Server.Search.Query.InternalQueryErrorException: Search has encountered a problem that prevents results from being returned. if the issue persists, please contact your administrator.

 
While running a Search on the Search Center as well Local search , on one of the Development farm got this error in SharePoint 2013 Search Center site
 
Getting results failed: Microsoft.Office.Server.Search.Query.InternalQueryErrorException: Search has encountered a problem that prevents results from being returned.  if the issue persists, please contact your administrator.   
 
Performed the following steps to resolve this after looking into ULS logs to identify the issue. Found that the search proxy was too busy to respond.
 
Get the Search Service Application ID

Get-SPServiceApplication
 
Get the Search Service Proxy ID

Get-SPServiceApplicationProxy
Remove the Search Proxy, replace SearchProxyID with the Search Service Proxy ID
 
 
Remove-SPEnterpriseSearchServiceApplicationProxy -Identity <SearchProxyID>
Replace the SearchID

$enterprisesearch = Get-SPEnterpriseSearchServiceApplication <SearchID>
$enterprisesearchproxy = New-SPEnterpriseSearchServiceApplicationProxy  -name SearchServiceProxy -Uri $enterprisesearch.uri.absoluteURI

$enterprisesearchproxy

IISreset

Reset the Indexer not required but did that anyways

Run a full crawl of the content sources

Boom issue resolved. This took some digging in the ULS to understand the exact issue and find the resoulution