I am unable to edit user profiles under MySites. When a user clicks edit they get a correlation error. The profiles web app pool account doesn't have permission to access the Search Admin DB. I'm not sure what permission, if any, should be granted on that
database.
SqlCommand: 'proc_MSS_GetSchemaHighLevelInfo' CommandType: StoredProcedure CommandTimeout: 30
Exception in GetSchemaHighLevelInfo: Cannot open database "SharePoint_ServiceDB_SearchAdminDB" requested by the login. The login failed. Login failed for user 'CONTOSO\mysitesvcacct'.
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK)
at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout)
at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Microsoft.Office.Server.Data.SqlSession.OpenConnection()
at Microsoft.Office.Server.Data.SqlSession.ExecuteReader(SqlCommand command, CommandBehavior behavior, SqlQueryData monitoringData, Boolean retryForDeadLock)
at Microsoft.Office.Server.Data.SqlSession.ExecuteReader(SqlCommand command, Boolean retryForDeadLock)
at Microsoft.Office.Server.Search.Administration.SqlSessionWrapper.ExecuteReader(SqlCommand command)
at Microsoft.Office.Server.Search.Administration.SchemaDatabase.PrivateGetSchemaHighLevelInfo()
at Microsoft.Office.Server.Search.Administration.SchemaDatabase.WrapFunction[T](String functionName, Func`1 wrappedFunction)
ProfileUI: Unhandled exception inside LoadProfileTable: Microsoft.Office.Server.Search.Administration.DatabaseException: There was an internal problem connecting to or querying the database.
at Microsoft.Office.Server.Search.Administration.SchemaDatabase.WrapFunction[T](String functionName, Func`1 wrappedFunction)
at Microsoft.Office.Server.Search.Administration.Schema.get_LastChangeTime()
at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.SynchronizeManagedPropertyMappings(Guid partitionID, SearchServiceApplicationProxy searchAppProxy)
at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.GetManagedPropertyMapping(Guid partitionID, String propertyName)
at Microsoft.Office.Server.UserProfiles.CoreProperty.GetManagedPropertyMapping(String propertyName)
at Microsoft.Office.Server.UserProfiles.CoreProperty.get_ManagedPropertyName()
at Microsoft.SharePoint.Portal.WebControls.ProfilePropertyLoader.ApplyFormattingEx(ProfileManagerBase objManager, Dictionary`2 highlightedProperties, Property prop, Object[] propValue, Boolean ignoreFormat, Boolean allowLinkToSearch, Boolean allowBooleanCheckbox)
at Microsoft.SharePoint.Portal.WebControls.ProfilePropertyLoader.ApplyFormattingEx(ProfileManagerBase objManager, Dictionary`2 highlightedProperties, Property prop, Object[] propValue, Boolean ignoreFormat, Boolean allowLinkToSearch)
at Microsoft.SharePoint.Portal.WebControls.ProfileUI.LoadProfileTable()
ProfileUI: Unhandled exception inside LoadControl: Microsoft.Office.Server.Search.Administration.DatabaseException: There was an internal problem connecting to or querying the database. a
at Microsoft.Office.Server.Search.Administration.SchemaDatabase.WrapFunction[T](String functionName, Func`1 wrappedFunction)
at Microsoft.Office.Server.Search.Administration.Schema.get_LastChangeTime()
at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.SynchronizeManagedPropertyMappings(Guid partitionID, SearchServiceApplicationProxy searchAppProxy)
at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.GetManagedPropertyMapping(Guid partitionID, String propertyName)
at Microsoft.Office.Server.UserProfiles.CoreProperty.GetManagedPropertyMapping(String propertyName)
at Microsoft.Office.Server.UserProfiles.CoreProperty.get_ManagedPropertyName()
at Microsoft.SharePoint.Portal.WebControls.ProfilePropertyLoader.ApplyFormattingEx(ProfileManagerBase objManager, Dictionary`2 highlightedProperties, Property prop, Object[] propValue, Boolean ignoreFormat, Boolean allowLinkToSearch, Boolean allowBooleanCheckbox)
at Microsoft.SharePoint.Portal.WebControls.ProfilePropertyLoader.ApplyFormattingEx(ProfileManagerBase objManager, Dictionary`2 highlightedProperties, Property prop, Object[] propValue, Boolean ignoreFormat, Boolean allowLinkToSearch)
at Microsoft.SharePoint.Portal.WebControls.ProfileUI.LoadProfileTable()
at Microsoft.SharePoint.Portal.WebControls.ProfileUI.LoadControl(Object sender, EventArgs e)
Application error when access /_layouts/15/EditProfile.aspx, Error=There was an internal problem connecting to or querying the database.
at Microsoft.Office.Server.Search.Administration.SchemaDatabase.WrapFunction[T](String functionName, Func`1 wrappedFunction)
at Microsoft.Office.Server.Search.Administration.Schema.get_LastChangeTime()
at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.SynchronizeManagedPropertyMappings(Guid partitionID, SearchServiceApplicationProxy searchAppProxy)
at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.GetManagedPropertyMapping(Guid partitionID, String propertyName)
at Microsoft.Office.Server.UserProfiles.CoreProperty.GetManagedPropertyMapping(String propertyName)
at Microsoft.Office.Server.UserProfiles.CoreProperty.get_ManagedPropertyName()
at Microsoft.SharePoint.Portal.WebControls.ProfilePropertyLoader.ApplyFormattingEx(ProfileManagerBase objManager, Dictionary`2 highlightedProperties, Property prop, Object[] propValue, Boolean ignoreFormat, Boolean allowLinkToSearch, Boolean allowBooleanCheckbox)
at Microsoft.SharePoint.Portal.WebControls.ProfilePropertyLoader.ApplyFormattingEx(ProfileManagerBase objManager, Dictionary`2 highlightedProperties, Property prop, Object[] propValue, Boolean ignoreFormat, Boolean allowLinkToSearch)
at Microsoft.SharePoint.Portal.WebControls.ProfileUI.LoadProfileTable()
at Microsoft.SharePoint.Portal.WebControls.ProfileUI.LoadControl(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Microsoft.Office.Server.Search.Administration.DatabaseException: There was an internal problem connecting to or querying the database.
at Microsoft.Office.Server.Search.Administration.SchemaDatabase.WrapFunction[T](String functionName, Func`1 wrappedFunction)
at Microsoft.Office.Server.Search.Administration.Schema.get_LastChangeTime()
at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.SynchronizeManagedPropertyMappings(Guid partitionID, SearchServiceApplicationProxy searchAppProxy)
at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.GetManagedPropertyMapping(Guid partitionID, String propertyName)
at Microsoft.Office.Server.UserProfiles.CoreProperty.GetManagedPropertyMapping(String propertyName)
at Microsoft.Office.Server.UserProfiles.CoreProperty.get_ManagedPropertyName()
at Microsoft.SharePoint.Portal.WebControls.ProfilePropertyLoader.ApplyFormattingEx(ProfileManagerBase objManager, Dictionary`2 highlightedProperties, Property prop, Object[] propValue, Boolean ignoreFormat, Boolean allowLinkToSearch, Boolean allowBooleanCheckbox)
at Microsoft.SharePoint.Portal.WebControls.ProfilePropertyLoader.ApplyFormattingEx(ProfileManagerBase objManager, Dictionary`2 highlightedProperties, Property prop, Object[] propValue, Boolean ignoreFormat, Boolean allowLinkToSearch)
at Microsoft.SharePoint.Portal.WebControls.ProfileUI.LoadProfileTable()
at Microsoft.SharePoint.Portal.WebControls.ProfileUI.LoadControl(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Getting Error Message for Exception System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Office.Server.Search.Administration.DatabaseException: There was an internal problem connecting to or querying the database.
at Microsoft.Office.Server.Search.Administration.SchemaDatabase.WrapFunction[T](String functionName, Func`1 wrappedFunction)
at Microsoft.Office.Server.Search.Administration.Schema.get_LastChangeTime()
at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.SynchronizeManagedPropertyMappings(Guid partitionID, SearchServiceApplicationProxy searchAppProxy)
at Microsoft.Office.Server.Administration.UserProfileApplicationProxy.GetManagedPropertyMapping(Guid partitionID, String propertyName)
at Microsoft.Office.Server.UserProfiles.CoreProperty.GetManagedPropertyMapping(String propertyName)
at Microsoft.Office.Server.UserProfiles.CoreProperty.get_ManagedPropertyName()
at Microsoft.SharePoint.Portal.WebControls.ProfilePropertyLoader.ApplyFormattingEx(ProfileManagerBase objManager, Dictionary`2 highlightedProperties, Property prop, Object[] propValue, Boolean ignoreFormat, Boolean allowLinkToSearch, Boolean allowBooleanCheckbox)
at Microsoft.SharePoint.Portal.WebControls.ProfilePropertyLoader.ApplyFormattingEx(ProfileManagerBase objManager, Dictionary`2 highlightedProperties, Property prop, Object[] propValue, Boolean ignoreFormat, Boolean allowLinkToSearch)
at Microsoft.SharePoint.Portal.WebControls.ProfileUI.LoadProfileTable()
at Microsoft.SharePoint.Portal.WebControls.ProfileUI.LoadControl(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)