dbTalk Databases Forums  

A table was detected in the schema that is not joined to any other schema

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


Discuss A table was detected in the schema that is not joined to any other schema in the microsoft.public.sqlserver.olap forum.



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

Default A table was detected in the schema that is not joined to any other schema - 01-06-2005 , 04:40 PM






Hello Everyone,

I am trying to programmatically add an existing dimension to a cube using DSO.

Set dsoCubeDim = dsoCube.Dimensions.AddNew("Sponsor")
dsoCube.Update
dsoCube.Process processFull

I am getting the following runtime error when the Process method is executed:

Run-time error -2147221425 (8004004f)
A table was detected in the schema that is not joined to any
other table

If I go to the Analysis Manager and open the cube in the editor, there are no
apparently disconnected tables...

If I exit from the editor without saving, the cube will subsequently fail to
process and indicate that an un-joined table exists.

If I save the cube when I exit from the editor, a Count Members popup window
appears indicating that "One or more levels have a count of zero.". The cube
will then Process without any problems.

Clearly there is something that needs to happen after cube is updated and
before the cube is processed.

Can anyone point me in the right direction?

Bob Segrest, PMP
BSegE LLC
(540) 937-5875
http://www.BSegE.com

Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: A table was detected in the schema that is not joined to any other schema - 01-07-2005 , 10:23 PM






Based on some testing with the FoodMart Budget cube, the JoinClause
property of a cube needs to be augmented with a condition for the added
dimension table, even if that table already appears in the Cube Editor
schema.


The steps were:

- Remove Category dimension and save Budget cube.
- Category dimension table still appears in the schema.
- Adding Category dimension back ends in process error.


It works after modifying the Join Clause in DSO script:

Quote:
Set dsoCube = db.mdstores("Budget")
MsgBox "Cube Old Join Clause: " & dsoCube.JoinClause

Set dsoCubeDim = dsoCube.Dimensions.AddNew("Category")
dsoCube.JoinClause = dsoCube.JoinClause & " AND " _
& "(""expense_fact"".""category_id"" = " _
& """category"".""category_id"")"

dsoCube.Update
MsgBox "Cube New Join Clause: " & dsoCube.JoinClause
dsoCube.Process processFull
Quote:

- Deepak

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


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.