Showing posts with label engine. Show all posts
Showing posts with label engine. Show all posts

Friday, February 24, 2012

attribute key was not found error

everytime i try to process my cube i get this error:

Errors in the OLAP storage engine: The attribute key cannot be found:

Table: dbo_MCSFinFactData, Column: InvoiceDateDimensionID, Value: 15.

Errors in the OLAP storage engine: The record was skipped because the attribute key was not found.

Attribute: InvoiceDateDimensionID 8 of Dimension: InvoiceDate Fiscal Year 2 from Database:

SRDBAnalysis, Cube: MCSFinancial, Measure Group: MCSFinancial, Partition: MCSFinancial, Record: 10.

I have checked the dimension table and the record with an invoicedatedimensionid value of 15 exists. there are also many records in the fact table that use an invoicedatedimensionid of 15. if the record exists in both tables, why does it say the attribute key was not found?

i have resolved this, only i dont understand why my actions resolved the issue and was hoping someone could explain.

in the error( in the above post) you see the attribute was "invoiceDate fiscal year 2". i just processed the attribute manually, and had to do the same with a handfull of other attributes, and now the cube works. why is this? also , is there a quicker way, as id rather not have to process 20 - 30 attributes manually each time there is a problem!

|||

Here is another thread on the same matter

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1198671&SiteID=1

The ultimate resolution should be fixing referential integrity problems in relational database and not processing dimensions in different order.

BTW, you cannot process a single attribute by itself

Edward.
--
This posting is provided "AS IS" with no warranties, and confers no rights.

|||there are no referential integrity issues within my database. i have made 100% sure of this. this database has been in use for 6 years with analysis services 2000, and there were never processing errors, and the processing was set to tolerate no errors. so it cannot be a database issue. im wondering if i just have to recreate the cubes completely in analysis server 2005? this isnt upgrade any more, its just redevelopment of old projects.|||

Analysis Services 2005 is little bit more strict when comapred to AS2000 in the way it is detecting inconsistencies in relational database. If you run SQL Profiler you'd mention that it is also uses different strategy when querying relational database during processing.

Every attribute is processed separately and in case of AS2000 you'd see a one query per dimension, in AS2005 you see multiple SQL queries sent- one per dimension attribute.

See this paper describing new processing architechture: http://msdn2.microsoft.com/en-us/library/ms345142.aspx

As for detecting inconsistensies in relational database, it could be tricky. For instance, the reason Analysis Server wouldnt find a key for attribute member is; you allowed for processing ignore records with repeated key. Set KeyDuplicate to ReportAndStop. In fact set ReportAndStop for every setting in ErrorConfiguration for your processing command.

Here is whitepaper talks about setting error configuration http://msdn2.microsoft.com/en-us/library/ms345138.aspx

And it is also important to review new dimension stucture and see what becomes a source for attribute key column/s and what it is name.

Migration process might have some quirks in some complex cases mapping AS2000 database to AS2005. As for Analysis Server detecting missing keys - every time I run into missing key case it is always comes down to some modeling or data issues.

Edward.
--
This posting is provided "AS IS" with no warranties, and confers no rights.

Attention, the MSDE is really garbage!

the SQL server using the same database engine as the MSDE, so SQL Server2005
also is a garbage too!
People who can tell how to get an Orcale desktop version?
MSDE is too good for a product which is FREE of cost.
So lets wait for a free desktop edition from oracle for which we will have
to wait till the end of this world.
Girish Sundaram
This posting is provided "AS IS" with no warranties, and confers no rights.
|||> the SQL server using the same database engine as the MSDE, so SQL
Server2005
> also is a garbage too!
What on earth are you talking about?
http://www.aspfaq.com/
(Reverse address to reply.)
|||Thank you for your considered opinion. We value it highly.
Greg Low [MVP]
MSDE Manager SQL Tools
www.whitebearconsulting.com
"leighsword" <tc_ylj@.tcunit.com.cn> wrote in message
news:ufVVQ$u0EHA.1932@.TK2MSFTNGP09.phx.gbl...
> the SQL server using the same database engine as the MSDE, so SQL
> Server2005
> also is a garbage too!
> People who can tell how to get an Orcale desktop version?
>
|||free?yes, you want us to Free test for the MSDE(sql2005 core).
if we got a big throuble ,then MS tech supporter will told us that the msde
is free,so we cann't provide any supports.(langh to us in the side,why are
you to choice a free software.)
God damn the MS.
"Girish Sundaram" <girishs@.microsoft.com> wrote in message
news:FQLtikw0EHA.3512@.cpmsftngxa10.phx.gbl...
> MSDE is too good for a product which is FREE of cost.
> So lets wait for a free desktop edition from oracle for which we will have
> to wait till the end of this world.
> Girish Sundaram
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
|||> free?yes, you want us to Free test for the MSDE(sql2005 core).
> if we got a big throuble ,then MS tech supporter will told us that the
msde
> is free,so we cann't provide any supports.(langh to us in the side,why are
> you to choice a free software.)
> God damn the MS.
So use something else, troll.
|||you guess right, it takes a lots of time of mine, so i hate you all(include
the tech supporter,although i know they have not make a mistake in this
case).
but NOW i can say nobody can beats me in the MSDE of installation.
to me as a best of best programmer(i have strongly experice in
installation,because that i have been made a like InstallSheild Setup
Tool,does not support Script) , the MSDE is really hard to install.
i think the MSDE will damn the gold LOGO of MS.
it shows the MS have not able to makes a good product .
"Aaron [SQL Server MVP]" <ten.xoc@.dnartreb.noraa> wrote in message
news:uQ$VEf20EHA.3376@.TK2MSFTNGP12.phx.gbl...[vbcol=seagreen]
> msde
are
> So use something else, troll.
>
|||in a nutshells, the MSDE means the MS Dman Me.
"leighsword" <leighsword@.163.net> wrote in message
news:epYU3M60EHA.1400@.TK2MSFTNGP11.phx.gbl...
> you guess right, it takes a lots of time of mine, so i hate you
all(include
> the tech supporter,although i know they have not make a mistake in this
> case).
> but NOW i can say nobody can beats me in the MSDE of installation.
> to me as a best of best programmer(i have strongly experice in
> installation,because that i have been made a like InstallSheild Setup
> Tool,does not support Script) , the MSDE is really hard to install.
> i think the MSDE will damn the gold LOGO of MS.
> it shows the MS have not able to makes a good product .
>
> "Aaron [SQL Server MVP]" <ten.xoc@.dnartreb.noraa> wrote in message
> news:uQ$VEf20EHA.3376@.TK2MSFTNGP12.phx.gbl...
> are
>