Lost Data ?? through change in Element Type

Post Reply
dj74
Posts: 8
Joined: Fri Jan 27, 2012 5:11 pm
OLAP Product: IBM Cognos Express Xcelerator
Version: 9.5
Excel Version: 2007

Lost Data ?? through change in Element Type

Post by dj74 »

Does a cube lose data if you change the type of an element?

We have changed an element within a dimension by mistake from simple to consolidated :shock: . When changing back to the simple element it appears that we have lost the data within the cube against the element - Is this the case and if so would we need to go to a backup and copy over an older version of the cube?
lotsaram
MVP
Posts: 3702
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: Lost Data ?? through change in Element Type

Post by lotsaram »

Yes this is expected behavior. When changing an element type from N to C what happens in the background is destruction of the leaf element and creation of a new consolidated element of same name. As in TM1 cubes numeric data is only stored at leaf level any data associated with the old leaf element will be lost.

This is why any changes of element type in TM1 need to be really well planned and any numeric data usually needs to be migrated prior to the actual element substitution.
Wim Gielis
MVP
Posts: 3230
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: Lost Data ?? through change in Element Type

Post by Wim Gielis »

Sorry if it's too obvious, but I wanted to add that you see 0 on the new consolidated element, since there are no children.
Hence, TM1's normal behaviour of consolidations showing the sum of the components, is working. It's only adding up nothing given the absence of components.
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
tomok
MVP
Posts: 2836
Joined: Tue Feb 16, 2010 2:39 pm
OLAP Product: TM1, Palo
Version: Beginning of time thru 10.2
Excel Version: 2003-2007-2010-2013
Location: Atlanta, GA
Contact:

Re: Lost Data ?? through change in Element Type

Post by tomok »

You may not have to go to backup. This used to work as long as you hadn't issued a SaveData since the dimension was updated:

1. Go to the data directory and copy the .cub file to another location
2. Restore the N level element to it's proper place with the dimension editor.
3. Stop the TM1 Server.
4. Copy the .cub file from step 1 back into the data directory.
5. Restart the TM1 Server.

I haven't had to do this in a while but it used to work, at least up to version 9.4. I doubt IBM has changed this.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
dj74
Posts: 8
Joined: Fri Jan 27, 2012 5:11 pm
OLAP Product: IBM Cognos Express Xcelerator
Version: 9.5
Excel Version: 2007

Re: Lost Data ?? through change in Element Type

Post by dj74 »

thanks folks...problem now resolved :D
Post Reply