Error processing ssas dimension

HARBILAS BAL 1 Reputation point
2021-05-12T08:58:00.843+00:00

Hi,

I have ssas cube with one dimension pointing to SQL server. When I try to process this dim in SSDT 2015, I am constantly getting below error.

Errors in the high-level relational engine. The following exception occurred while the managed IDbCommand interface was being used: [500] Could not execute the specified command: Input string was not in a correct format.;Input string was not in a correct format.
Input string was not in a correct format..
SQL queries
SELECT
DISTINCT
[dbo_Users].[dbo_UsersLoginID0_0] AS [dbo_UsersLoginID0_0]
FROM
OPENROWSET
(
N'SQLNCLI11.1',
N'',
N'
SELECT [LoginID] AS [dbo_UsersLoginID0_0]
FROM
(
SELECT VendorUserID, LoginID
FROM dbo.Users_Macys
)
AS [Users_Macys] '
)
AS [dbo_Users]

SQL Server Analysis Services
SQL Server Analysis Services
A Microsoft online analytical data engine used in decision support and business analytics, providing the analytical data for business reports and client applications such as Power BI, Excel, Reporting Services reports, and other data visualization tools.
1,344 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Lukas Yu -MSFT 5,826 Reputation points
    2021-05-12T10:05:07.47+00:00

    Hi ,

    Have you exam the the query in your SSMS enviroment to see if the query could run?

    I think the query has missed the second arguement for openrowset function ,that should be { 'datasource' ; 'user_id' ; 'password' | 'provider_string' } ? You could check and exam the OPENROWSET fuction at MS Doc: OPENROWSET (Transact-SQL)

    Regards,
    Lukas

    0 comments No comments

  2. HARBILAS BAL 1 Reputation point
    2021-05-12T10:30:54.383+00:00

    Hi,

    I have simply build dimension from view in data source view. But when I process the dimension, I am getting this error.

    Actually, the openrowset SQL is embedded in the error. I haven't build it manually.

    95914-image.png

    0 comments No comments

  3. Lukas Yu -MSFT 5,826 Reputation points
    2021-05-14T09:42:12.483+00:00

    It looks like an error raised by the database engine. What datasource are you using ? Was other dimension processed correctly? Could this table be viewed in database engine ?

    0 comments No comments

  4. HARBILAS BAL 1 Reputation point
    2021-05-22T15:14:44.37+00:00

    The issue was that if there are 2 data sources (DS) in ssas, one of the DS is made primary. Now, the data source view (DSV) can have tables from both DS but later the dimensions cant be processed because it tries to set up linked server queries between 2 DS.
    So, I had to have single DS, single DSV and then process dim. Then it does not need to have linked server queries.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.