View Title Element Not Defined

Post Reply
winsonlee
Regular Participant
Posts: 180
Joined: Thu Jul 01, 2010 3:06 am
OLAP Product: Cognos Express
Version: 9.5
Excel Version: 2007
Location: Melbourne, Australia

View Title Element Not Defined

Post by winsonlee »

There are one thing that i would like to clarify if it will effect the view.

I have one dimension name "Customer". This dimension is updated using a process and all elements will be deleted before populating the element again.

I have created a view by selecting the element from the "Customer" dimension manually. It is not through expression nor the selected element is save as subset.

There are a few times when i open the view, there isnt any element selected on the Customer dimension and I have to manually assign element again to the view.

From your point of view, the nightly process that deletes and repopulate the element into the Customer dimension, will it effect the element to be missing when the view is open ?

when a view is created, is it advisable to save the element selected on dimension as subset ?
Wim Gielis
MVP
Posts: 3241
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.1.5
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: View Title Element Not Defined

Post by Wim Gielis »

winsonlee wrote:From your point of view, the nightly process that deletes and repopulate the element into the Customer dimension, will it effect the element to be missing when the view is open ?
Yes, that will be the cause.

You do not need to delete all elements when you update the dimension. Is there a particular reason why you would do that?
Best regards,

Wim Gielis

IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
winsonlee
Regular Participant
Posts: 180
Joined: Thu Jul 01, 2010 3:06 am
OLAP Product: Cognos Express
Version: 9.5
Excel Version: 2007
Location: Melbourne, Australia

Re: View Title Element Not Defined

Post by winsonlee »

each customer is belongs to a group within a hierarchy. There are times where a customer is move from one group to another. if all element is not deleted, there are times where an element belongs to two parents when it is suppose to be only one.

at the moment i am trying to use expression to create subset for the dimension and save the view using the subset defined. Hope this will resolve the issue.
lotsaram
MVP
Posts: 3706
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: View Title Element Not Defined

Post by lotsaram »

You should look into "unwinding" the dimension rather than clearing all elements as part of the nightly rebuild. Then your subsets won't be impacted.u
rmackenzie
MVP
Posts: 733
Joined: Wed May 14, 2008 11:06 pm

Re: View Title Element Not Defined

Post by rmackenzie »

winsonlee wrote:There are times where a customer is move from one group to another. if all element is not deleted, there are times where an element belongs to two parents when it is suppose to be only one.
You can remove all the parent-child relationships from the dimension before the nightly update process is run. This is often called 'unwinding' the dimension. You use the TI function DimensionElementComponentDelete to do this. Once you've unwound the dimension, as long as the data source only allocates one customer per parent then your dimension will reflect this. Then you don't have to actually delete elements and this should improve your issue with cube views.

The code to unwind all parent-child relationships is:

Code: Select all

# unwind dimension
sDimName = 'YOUR_DIMENSION_NAME';
nElemCounter = 1;
nTotalElems = DIMSIZ ( sDimName );
WHILE ( nElemCounter <= nTotalElems );
  sElemName = DIMNM ( sDimName, nElemCounter );
  IF ( DTYPE ( sDimName, sElemName ) @= 'C' );
    nChildren = ELCOMPN ( sDimName, sElemName );
    WHILE ( nChildren > 0 );
      sChildElem = ELCOMP ( sDimName, sElemName, nChildren );
      DimensionElementComponentDelete ( sDimName, sElemName, sChildElem );
      nChildren = nChildren - 1;
    END;
  ENDIF;
  nElemCounter = nElemCounter + 1;
END;
Robin Mackenzie
Post Reply