Skip to main content

Error: Login failed error when executing first dimension


Christian Hauggaard
Community Manager
Forum|alt.badge.img+5

Symptoms

When you execute the analysis services model you get the following error:

Login failed for user 'domain\username'.; 28000; Cannot open database "DWH" requested by the login. The login failed.; 42000. Errors in the high-level relational engine. A connection could not be made to the data source with the DataSourceID of 'DWH', Name of 'DWH'. Errors in the OLAP storage engine: An error occurred while the dimension, with the ID of 'Dimension', Name of 'Dimension' was being processed. Errors in the OLAP storage engine: An error occurred while the 'Dimension Level' attribute of the 'Dimension' dimension from the 'OLAP' database was being processed. Internal error: The operation terminated unsuccessfully. Server: The operation has been cancelled.

OR

A connection could not be made to the data source with the Name of 'MDW'

Cause

The user that runs Analysis Services service does not have sufficient rights to access the prepare instance. The default user name in MSSQL 2016 is NT Service\MSOLAP$MSSQLSERVER16, the default name in earlier versions is NT Service\MSSQLServerOLAPService.

Resolution

To resolve this you have to give at least db_datareader to the user that the Analysis Services Service is running as on the prepare instance. To find out which user this is do as follows:

  1. Start -> Run -> Services.msc
  2. Locate the service with the display name: SQL Server Analysis Services (...)
  3. Locate the username in the Log on as column, this is the username that needs permissions on the prepare instance.

Then add the user rights to the prepare instance:

  1. Open SQL Server Management Studio.
  2. Expand the Security node, Expand Logins, if the username from the error message above exists in the list, right click and Properties. Otherwise right click Logins, "New Login..." and type in the correct Login Name:
  3. On the "User Mapping" tab check the prepare instance Map checkbox and select db_datareader for it.
  4. Click OK
Did this topic help you find an answer to your question?

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings