What happens when RDBMS structure and SSAS DB structure are not same?

Not all training session are easy with simple error. There are times when typical issue are seen, here we will discuss one such issue recently seen in Mumbai MSBI premise training while doing SSAS lab.

Issue:

1

The error says that the duplicate attribute key has been found in Country & Product table. This error has encountered because the Country table and Product table does not have any primary keys in RDBMS structure while in SSAS project we have designed our database where we have given primary key to both Country & Product Table.

2

3

Here we do not see the primary key in the RDBMS.

Solution:

For solving this error first of all we will delete the Country table and Product table from our Data Source view which we have created.

4

After deleting the tables this is how our Data Source View will look like,

5

Now go to Country table in our RDBMS and write this query which will give the desired output without any duplicate attribute.

6

Now copy the query and do the following steps,

7

8

Paste the query and the table will be created. In the same way do for Product table,

9

10

11

Then set the primary key to both the table and map the relation,

12

13

After that we will delete the Cube & dimensions and recreate it again (not advised in the production mode).

14

Now process this Cube and then do the modifications in all the dimensions by inserting the Name field as we want the analysis to be done by using names and not Id’s.

After doing changes in our Dimensions, again process the Cube and the error are solved.

15

16

Here we can see the Analysis done by name and not Id’s.

More the error and issue faced during practice MSBI classroom sessions
becomes interesting.

Comments

comments

This entry was posted in MSBI Training in Mumbai and tagged , , , , . Bookmark the permalink.

Leave a Reply

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