Skip to content
May 17, 2025
  • Administration
  • PowerShell
  • SharePoint 2013
  • SharePoint 2019

Get-SPNote

All about SharePoint and PowerShell

  • Home
  • Administration
  • User Profile
  • System.Data.SqlClient.SqlException (0x80131904): The EXECUTE permission – User Profile Issue
  • Administration
  • SharePoint 2013
  • SharePoint 2019
  • User Profile

System.Data.SqlClient.SqlException (0x80131904): The EXECUTE permission – User Profile Issue

SPNoteAdmin5 years ago2 years ago03 mins

Another Database Level Challenge I faced with the User Profile My Site Host.

Once I have configured entire SharePoint 2019 Farm and User Profile Service, While Loading My Site Site Collection I was getting below Error.

as ULS log Explained detail Error was as follows

System.Data.SqlClient.SqlException (0x80131904): The EXECUTE permission was denied on the object 'profile_GetUserProfileData', database profileDB, schema 'upa'.   
 at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData()   
 at System.Data.SqlClient.SqlDataReader.get_MetaData()   
 at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)   
 at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)   
 at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)   
 at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)   
 at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)   
 at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)   
 at Microsoft.Office.Server.Data.SqlSession.ExecuteReader(SqlCommand command, CommandBehavior behavior, SqlQueryData monitoringData, Boolean retryForDeadLock)  ClientConnectionId:833f9396-d1f4-45cf-ac28-cbd4ef56e274  Error Number:229,State:5,Class:14

After Few minutes of investigation I was able to find out issue was with the Permission of the My Site host Web Application, Application Pool Account

Resolution

Provide SPDataAccess Permission to the Web Application App Pool Account on User Profile Service Databases

Watch the Video for more details

Tagged: Permission Issue User Profile Service

Post navigation

Previous: Get-SPFarmDetails Get SharePoint Farm Configuration Information
Next: Enabling Nintex Workflow Feature Failed – Sorry, Something Went Wrong

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Related News

Free SharePoint Pre-Upgrade Check List

SPNoteAdmin2 years ago2 years ago 0

Extract Documents to Folder based on Managed Metadata Column – SharePoint

SPNoteAdmin4 years ago2 years ago 0

How To Fix Nintex Workflow Activation Error

SPNoteAdmin5 years ago2 years ago 0

Recent Posts

  • Free SharePoint Pre-Upgrade Check List
  • Extract Documents to Folder based on Managed Metadata Column – SharePoint
  • How To Fix Nintex Workflow Activation Error
  • Enabling Nintex Workflow Feature Failed – Sorry, Something Went Wrong
  • System.Data.SqlClient.SqlException (0x80131904): The EXECUTE permission – User Profile Issue

Get Free SharePoint Pre-Upgrade Check List

Set yourself up for a successful upgrade by following in the footsteps of those who have already done it right.

Access Denied Administration Administrator Best Practice Delete e-book free books free resources Get-AppPoolDetails Get-AuthProviders Get-ExecutionPolicy Get-OutgoingMail Get-SPFarmDetails Large Lists list view threshold Managed Metadata Microsoft NetBios Nintex Nintex Form Nintex Workflow PDF Icon Permission Issue PowerShell Pre-Upgrade Publish Form Search Set-ExecutionPolicy SharePoint SharePoint 2013 SharePoint document Icon SharePoint Management Shell SharePoint On-Prem SharePoint Upgrade Site Collection SPQuery Sub sites SubSites Super Reader Super User Upgrade User Profile Service Web Application Workflow WSS_Content_Application_Pools

Recent Comments

No comments to show.
Trendy News - News WordPress Theme. All Rights Reserved 2025. Powered By BlazeThemes.