dbTalk Databases Forums  

Cube Partions

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Cube Partions in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
allie
 
Posts: n/a

Default Cube Partions - 11-29-2004 , 10:28 AM






Can anyone tell me why the cube partition processing fails when I use a view
as the fact table, and partition it with a data slice. We have one large
fact table, which is created through a view. This works fine, but when I try
to break the cube up with a data slice based on month, I get the following
error:

The object structure is not valid (Invalid fact table alias);

I'm not finding much info on this error.
Any help would be great.. thanks



Reply With Quote
  #2  
Old   
 
Posts: n/a

Default Re: Cube Partions - 11-29-2004 , 12:56 PM






allie;

i think that you'll need to give more information

can you give us the SQL definition for the view?

Thanks




"allie" <aleslie (AT) sympatico (DOT) ca> wrote

Quote:
Can anyone tell me why the cube partition processing fails when I use a
view
as the fact table, and partition it with a data slice. We have one large
fact table, which is created through a view. This works fine, but when I
try
to break the cube up with a data slice based on month, I get the following
error:

The object structure is not valid (Invalid fact table alias);

I'm not finding much info on this error.
Any help would be great.. thanks





Reply With Quote
  #3  
Old   
allie
 
Posts: n/a

Default Re: Cube Partions - 11-29-2004 , 09:49 PM



The view which I am using to define the fact table is similar to something
as follows:

CREATE VIEW VW_FACT_TABLE AS
SELECT g.DATE_KEY, g.TIME_BAND_KEY, g.APPLICATION_KEY,
g.CUSTOMER_KEY, g.REGION_KEY, g.AREA_CODE_KEY,
SOURCE_KEY, g.TABLE1_KEY, g.TABLE1_STATUS_KEY, g.REASON_KEY,
g.TABLE1_COUNT, g.TABLE1_DURATION, g.CREATE_DATE
FROM F_TABLE1_DETAIL g
JOIN D_APPLICATION a ON g.APPLICATION_KEY = a.APPLICATION_KEY
WHERE TYPE_FLAG <> '1'
UNION ALL
SELECT m.DATE_KEY, m.TIME_BAND_KEY, m.APPLICATION_KEY, m.CUSTOMER_KEY,
m.REGION_KEY, 0,
m.SOURCE_KEY, m.TABLE2_KEY, 0, m.REASON_KEY, m.TABLE2_COUNT,
m.TABLE2_DURATION, m.CREATE_DATE
FROM F_TABLE2_DETAIL m
JOIN D_APPLICATION a ON g.APPLICATION_KEY = a.APPLICATION_KEY
WHERE a.TYPE_FLAG = '2' OR a.TYPE_FLAG = '4'

I've tried it on another server, and it does exactly the same thing when I
create a partition and select a date slice. Then process the cube always
fails with the
same error -> The object structure is not valid (Invalid fact table alias);

Please let me know if you can see any reason this will not be possible to
set up in partitons.
thanks for the response.


<aaron_kempf (AT) hotmail (DOT) com> wrote

Quote:
allie;

i think that you'll need to give more information

can you give us the SQL definition for the view?

Thanks




"allie" <aleslie (AT) sympatico (DOT) ca> wrote in message
news:eNPRpBj1EHA.2608 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Can anyone tell me why the cube partition processing fails when I use a
view
as the fact table, and partition it with a data slice. We have one large
fact table, which is created through a view. This works fine, but when I
try
to break the cube up with a data slice based on month, I get the
following
error:

The object structure is not valid (Invalid fact table alias);

I'm not finding much info on this error.
Any help would be great.. thanks







Reply With Quote
  #4  
Old   
 
Posts: n/a

Default Re: Cube Partions - 12-06-2004 , 01:38 PM



well, what fact Table aliases are you using?




"allie" <aleslie (AT) sympatico (DOT) ca> wrote

Quote:
The view which I am using to define the fact table is similar to something
as follows:

CREATE VIEW VW_FACT_TABLE AS
SELECT g.DATE_KEY, g.TIME_BAND_KEY, g.APPLICATION_KEY,
g.CUSTOMER_KEY, g.REGION_KEY, g.AREA_CODE_KEY,
SOURCE_KEY, g.TABLE1_KEY, g.TABLE1_STATUS_KEY, g.REASON_KEY,
g.TABLE1_COUNT, g.TABLE1_DURATION, g.CREATE_DATE
FROM F_TABLE1_DETAIL g
JOIN D_APPLICATION a ON g.APPLICATION_KEY = a.APPLICATION_KEY
WHERE TYPE_FLAG <> '1'
UNION ALL
SELECT m.DATE_KEY, m.TIME_BAND_KEY, m.APPLICATION_KEY, m.CUSTOMER_KEY,
m.REGION_KEY, 0,
m.SOURCE_KEY, m.TABLE2_KEY, 0, m.REASON_KEY, m.TABLE2_COUNT,
m.TABLE2_DURATION, m.CREATE_DATE
FROM F_TABLE2_DETAIL m
JOIN D_APPLICATION a ON g.APPLICATION_KEY = a.APPLICATION_KEY
WHERE a.TYPE_FLAG = '2' OR a.TYPE_FLAG = '4'

I've tried it on another server, and it does exactly the same thing when I
create a partition and select a date slice. Then process the cube always
fails with the
same error -> The object structure is not valid (Invalid fact table
alias);

Please let me know if you can see any reason this will not be possible to
set up in partitons.
thanks for the response.


aaron_kempf (AT) hotmail (DOT) com> wrote in message
news:uYuv1Uk1EHA.1144 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
allie;

i think that you'll need to give more information

can you give us the SQL definition for the view?

Thanks




"allie" <aleslie (AT) sympatico (DOT) ca> wrote in message
news:eNPRpBj1EHA.2608 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Can anyone tell me why the cube partition processing fails when I use
a
view
as the fact table, and partition it with a data slice. We have one
large
fact table, which is created through a view. This works fine, but when
I
try
to break the cube up with a data slice based on month, I get the
following
error:

The object structure is not valid (Invalid fact table alias);

I'm not finding much info on this error.
Any help would be great.. thanks









Reply With Quote
  #5  
Old   
 
Posts: n/a

Default Re: Cube Partions - 12-08-2004 , 10:01 AM



I would look at standardizing the column names in your union query

like have Col1 on top of Col1; dont' call them Col1_fromTable1 and
Col1_fromTable2

you have TABLE1_KEY on top of TABLE2_KEY

I would look at standardizing those-- i dont know why this should make a
difference, but if it is giving you a hard time; we've got to be creative



<aaron_kempf (AT) hotmail (DOT) com> wrote

Quote:
well, what fact Table aliases are you using?




"allie" <aleslie (AT) sympatico (DOT) ca> wrote in message
news:OSpyV$o1EHA.1452 (AT) TK2MSFTNGP11 (DOT) phx.gbl...
The view which I am using to define the fact table is similar to
something
as follows:

CREATE VIEW VW_FACT_TABLE AS
SELECT g.DATE_KEY, g.TIME_BAND_KEY, g.APPLICATION_KEY,
g.CUSTOMER_KEY, g.REGION_KEY, g.AREA_CODE_KEY,
SOURCE_KEY, g.TABLE1_KEY, g.TABLE1_STATUS_KEY, g.REASON_KEY,
g.TABLE1_COUNT, g.TABLE1_DURATION, g.CREATE_DATE
FROM F_TABLE1_DETAIL g
JOIN D_APPLICATION a ON g.APPLICATION_KEY = a.APPLICATION_KEY
WHERE TYPE_FLAG <> '1'
UNION ALL
SELECT m.DATE_KEY, m.TIME_BAND_KEY, m.APPLICATION_KEY,
m.CUSTOMER_KEY,
m.REGION_KEY, 0,
m.SOURCE_KEY, m.TABLE2_KEY, 0, m.REASON_KEY, m.TABLE2_COUNT,
m.TABLE2_DURATION, m.CREATE_DATE
FROM F_TABLE2_DETAIL m
JOIN D_APPLICATION a ON g.APPLICATION_KEY = a.APPLICATION_KEY
WHERE a.TYPE_FLAG = '2' OR a.TYPE_FLAG = '4'

I've tried it on another server, and it does exactly the same thing when
I
create a partition and select a date slice. Then process the cube always
fails with the
same error -> The object structure is not valid (Invalid fact table
alias);

Please let me know if you can see any reason this will not be possible
to
set up in partitons.
thanks for the response.


aaron_kempf (AT) hotmail (DOT) com> wrote in message
news:uYuv1Uk1EHA.1144 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
allie;

i think that you'll need to give more information

can you give us the SQL definition for the view?

Thanks




"allie" <aleslie (AT) sympatico (DOT) ca> wrote in message
news:eNPRpBj1EHA.2608 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Can anyone tell me why the cube partition processing fails when I
use
a
view
as the fact table, and partition it with a data slice. We have one
large
fact table, which is created through a view. This works fine, but
when
I
try
to break the cube up with a data slice based on month, I get the
following
error:

The object structure is not valid (Invalid fact table alias);

I'm not finding much info on this error.
Any help would be great.. thanks











Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.