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
- Deepak
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!