Time Dimension error

Hi,

I've created a cube and now i'm trying a add a time dimension, it gives me an error. the time dimension i've created is using server time dimensions which has year, quarter, month and date attributes, when browse the dimension it looks fine but i'm trying to add this to cube and try to process cube it give a me this error

Warning 1 Errors in the OLAP storage engine: The attribute key cannot be found: Table: dbo_Ticket, Column: SalesDateTime, Value: 9/21/2004 4:29:53 PM. 0 0

Error 3 Errors in the OLAP storage engine: The process operation ended because the number of errors encountered during processing reached the defined limit of allowable errors for the operation. 0 0

I set relationship type to regular and mapped the date from time dimension to a dattime field in fact table

thanks
-Guri

[828 byte] By [Guri] at [2008-2-20]
# 1
Hi All,

Any answer to the above question? We too are suffering from a similar error.

If you've got an answer, kindly post it on this website at the earliest

Thanks,
irfan

SyedIrfan at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Analysis Services...
# 2
I don't have an answer but I do have a question.
I have been trying to create a time dimension. When I select years and give it the column, that column disappears and I cannot add quarter, month, etc. The docs say that there are check boxes to use but I have no check boxes.
How did you get yours to work?
Thanks,
Roy
RoyAF at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Analysis Services...
# 3

While using a wizard for a creating a time dimension on the select dimension type dialog pick "server time dimension" instead of "time dimension" (i think this one used if you have a table created for time dimension which has all the fields for time dimension that you want in your hierarchy) then map the date field from fact table to time dimenasion created on Dimension Usage tab in cube

Guri at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Analysis Services...
# 4
I get the same error - attribute key can't be found - I'm using the time dimension built without using a datasource - but using the template that comes with SSAS 2005 - all PK_Date values are by day, at 12:00:00 AM - Is there a way to change how the relationships between date fields relate to this dimension?

Is there a significance with respect to using smalldatetimes and datetimes?

JoeH at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Analysis Services...
# 5

I think you cann't have time stamp in datetime field in Fact table, the value should look something like this "2005/1/1 12:00:00" (time is always 12:00 AM), if there are different time then the key don't match

Guri at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Analysis Services...
# 6

Believe it or not, I get around this by converting the date time value in the fact table to an nvarchar = YYYY-MM-DD

and that works.

STUPID in the extreme to have to do that, but it works.

Related issue I have is that converting back to a datetime (after removing the time portion) seems to cause null values in the fact table relationship to be converted to '12:00 A.M.' which then fails to match the dimension.

The values in the query inside Analysis services are still NULL, so it must be during the actual processing of the cube

RogerWillcocks at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Analysis Services...

SQL Server

Site Classified