Creating subsets on }Cubes & }Dimensions

Post Reply
User avatar
sachin
Posts: 92
Joined: Fri Jan 15, 2010 9:54 pm
OLAP Product: Transformer,SSAS, EP, TM1
Version: 7.3 2005 10.1 10.1.1
Excel Version: 2013
Contact:

Creating subsets on }Cubes & }Dimensions

Post by sachin »

Does TM1 allow named subsets on control dimensions }Cubes and }Dimensions? We are on 10.1.1 and using Architect. I created a named subset on each of }Cubes and }Dimensions.
Subset.png
Subset.png (26.32 KiB) Viewed 10752 times
But these named subsets go away when TM1 service is restarted, which we do every morning. To me it almost looks like }Cubes and }Dimensions are re-created during restart thereby the subsets get deleted. I have built few processes that use these subsets as the data source. So these processes are failing, because they cannot find the subset. If push comes to shove, I can have these views created through another TI process. But I am hoping, that there is someway these subsets can be preserved.

These subsets that I need are MDX based. At first I thought MDX based subsets are not preserved for whatever reason. So I created a non-mdx subset as a test. And yet, it got deleted too! Besides, users guide doesn't mention any restrictions on creating subsets on control dimensions.

On other thing is that, we have named subsets on }Groups, }Clients dimensions. They do not get deleted. It is only }Cubes and }Dimensions that appear to have this issue.

Perhaps this is a known feature, and silly me cannot find any post related to this - even after searching in this forum or on google. I'd appreciate if anyone can confirm or point me in the right direction.

Thanks!
Check out my blog for some good information on TM1, SPSS
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: Creating subsets on }Cubes & }Dimensions

Post by Wim Gielis »

Hello

I can confirm that these subsets are deleted.

Maybe you could also duplicate these 2 dimensions in a different dimension, and base the MDX-subsets on the latter 2 dimensions?
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
Andy Key
MVP
Posts: 352
Joined: Wed May 14, 2008 1:37 pm
OLAP Product: TM1
Version: 2.5 to PA
Excel Version: Lots
Location: Sydney
Contact:

Re: Creating subsets on }Cubes & }Dimensions

Post by Andy Key »

Create a TI Process that has code to re-create the subsets in question, add that TI to a chore and specify that chore against the StartUpChores line in the tm1s.cfg.
Andy Key
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: Creating subsets on }Cubes & }Dimensions

Post by lotsaram »

The }Cubes and }Dimensions dims have always been recreated on server startup from the contents of the data directory .dim and .cub files.

However it is news to me that subsets created in these dimensions are blown away on server restart. I just tested this on 10.1.1 and can confirm it. I'm sure I have had subsets in control dimensions in the past without issue so I suspect this is new "functionality" that has arrived with 10.1. I have to say I'm not a fan, there can be plenty of valid reasons from a system admin perspective to have subsets in these dimensions and I fail to see why subsets would be deleted on server start even if the dimension is rebuilt. At least attributes added to these dimensions (and their values) remain intact.

Yes you can work around by having replica control dimensions (which I think is a good idea anyway) and/or adding startup chores but it would be better if you didn't have to!
Andy Key
MVP
Posts: 352
Joined: Wed May 14, 2008 1:37 pm
OLAP Product: TM1
Version: 2.5 to PA
Excel Version: Lots
Location: Sydney
Contact:

Re: Creating subsets on }Cubes & }Dimensions

Post by Andy Key »

lotsaram wrote:I'm sure I have had subsets in control dimensions in the past without issue so I suspect this is new "functionality" that has arrived with 10.1.
I don't think this is that new. I can't remember where I had this issue before, but a have a feeling it was at a client who was using CX, and if it was them, then I developed their system in CX 9.0, and wasn't that based on 9.4.something?

I think I was using an attribute on }Cubes in the MDX to create the subset, and I would only have been using that in TIs, so as using StartUpChores wasn't an option back then, I would just have checked to see if the subset existed, and rebuilt it on the fly if it didn't. Very small number of users, didn't need to worry about object locking.
Andy Key
Gabor
MVP
Posts: 170
Joined: Fri Dec 10, 2010 4:07 pm
OLAP Product: TM1
Version: [2.x ...] 11.x / PAL 2.1.13
Excel Version: Excel 2016-2021-365
Location: Germany

Re: Creating subsets on }Cubes & }Dimensions

Post by Gabor »

I used to have several subsets on the }groups dim (static), I still have no issues with them under 10.1.1 FP1. I cannot remember any issue with it in the past.
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: Creating subsets on }Cubes & }Dimensions

Post by tomok »

Gabor wrote:I used to have several subsets on the }groups dim (static), I still have no issues with them under 10.1.1 FP1. I cannot remember any issue with it in the past.
That's because the }groups or }clients dimension wouldn't be able to rebuild themselves on startup. What would be their source? For }Cubes and }Dimensions it just has to read the list of .cub and .dim files.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
User avatar
sachin
Posts: 92
Joined: Fri Jan 15, 2010 9:54 pm
OLAP Product: Transformer,SSAS, EP, TM1
Version: 7.3 2005 10.1 10.1.1
Excel Version: 2013
Contact:

Re: Creating subsets on }Cubes & }Dimensions

Post by sachin »

Dear all ... thank you for suggesting alternatives. Given what we are seeing, I will now have to add some extra steps (replicate these dims or create subsets during server startup) to get our security processes working.

Thank you.
Check out my blog for some good information on TM1, SPSS
User avatar
sachin
Posts: 92
Joined: Fri Jan 15, 2010 9:54 pm
OLAP Product: Transformer,SSAS, EP, TM1
Version: 7.3 2005 10.1 10.1.1
Excel Version: 2013
Contact:

Re: Creating subsets on }Cubes & }Dimensions

Post by sachin »

Gabor wrote:I used to have several subsets on the }groups dim (static), I still have no issues with them under 10.1.1 FP1. I cannot remember any issue with it in the past.
We have subsets on }Groups as well as }Clients. We have no issues with them. It is for }Cubes and }Dimensions, that we see the problem.
Check out my blog for some good information on TM1, SPSS
Gabor
MVP
Posts: 170
Joined: Fri Dec 10, 2010 4:07 pm
OLAP Product: TM1
Version: [2.x ...] 11.x / PAL 2.1.13
Excel Version: Excel 2016-2021-365
Location: Germany

Re: Creating subsets on }Cubes & }Dimensions

Post by Gabor »

Then you should talk to IBM and log an issue.
I see no reason, why a subset should go away during a server refresh - regardless of what kind of dim we are talking about.
declanr
MVP
Posts: 1831
Joined: Mon Dec 05, 2011 11:51 am
OLAP Product: Cognos TM1
Version: PA2.0 and most of the old ones
Excel Version: All of em
Location: Manchester, United Kingdom
Contact:

Re: Creating subsets on }Cubes & }Dimensions

Post by declanr »

Gabor wrote:Then you should talk to IBM and log an issue.
I see no reason, why a subset should go away during a server refresh - regardless of what kind of dim we are talking about.
As discussed the }Cubes, }Dimensions and }Processes dimensions are recreated on server restart by cycling through the data directory to see what .cub, .dim and .pro files exist.

In the process of this; the relevant .sub files are also deleted, I don't work for IBM so can't say for definite that this is why but it would make sense that this is done in case a subset included an element that isn't in the new version of the dimension... admittedly it would just give you an error message that you can click through but I don't think this would be considered an "issue" by IBM rather than just the way that it has always worked...


As Tomok pointed out the }Cubes dimension and }Clients dimension are a whole different 'kettle of fish.
Declan Rodger
Gabor
MVP
Posts: 170
Joined: Fri Dec 10, 2010 4:07 pm
OLAP Product: TM1
Version: [2.x ...] 11.x / PAL 2.1.13
Excel Version: Excel 2016-2021-365
Location: Germany

Re: Creating subsets on }Cubes & }Dimensions

Post by Gabor »

My mental model is pretty simple in such a case, if subsets are offered, they shall work all about the same across TM1.
So, I still don't think that the dim rebuild is reason enough to simply throw away subsets.
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: Creating subsets on }Cubes & }Dimensions

Post by lotsaram »

Gabor wrote:My mental model is pretty simple in such a case, if subsets are offered, they shall work all about the same across TM1.
So, I still don't think that the dim rebuild is reason enough to simply throw away subsets.
I'm with Gabor on this one. Just because there might be DimensionDeleteAllElements going on in for }Dimensions and }Cubes is no reason to blow away the }Dimensions}subs and }Cubes}subs folders. Any dynamic subsets that might have been saved should still be just as valid.
declanr
MVP
Posts: 1831
Joined: Mon Dec 05, 2011 11:51 am
OLAP Product: Cognos TM1
Version: PA2.0 and most of the old ones
Excel Version: All of em
Location: Manchester, United Kingdom
Contact:

Re: Creating subsets on }Cubes & }Dimensions

Post by declanr »

Don't get me wrong, I would much rather the subsets stuck around. I have had to deal with the issue in the past as well and gone down the route of duplicating the relevant control dimensions every night and working with my mimics.

I simply mean that I would be surprised if IBM would consider it an issue should you try to log it with them.
Declan Rodger
User avatar
Steve Vincent
Site Admin
Posts: 1054
Joined: Mon May 12, 2008 8:33 am
OLAP Product: TM1
Version: 10.2.2 FP1
Excel Version: 2010
Location: UK

Re: Creating subsets on }Cubes & }Dimensions

Post by Steve Vincent »

I'm using 9.5 and have *almost* the same issue with them. The service doesn't pick the subsets up on a restart, but the .sub objects are still showing in the file structure on the server itself. Like others i had to resort to creating what i needed on the fly...
If this were a dictatorship, it would be a heck of a lot easier, just so long as I'm the dictator.
Production: Planning Analytics 64 bit 2.0.5, Windows 2016 Server. Excel 2016, IE11 for t'internet
User avatar
sachin
Posts: 92
Joined: Fri Jan 15, 2010 9:54 pm
OLAP Product: Transformer,SSAS, EP, TM1
Version: 7.3 2005 10.1 10.1.1
Excel Version: 2013
Contact:

Re: Creating subsets on }Cubes & }Dimensions

Post by sachin »

Checked with IBM - per development team it is the design intent for these objects: }Chores , }Cubes , }Dimensions , }Processes , }TimeIntervals
Steve Vincent wrote:I'm using 9.5 and have *almost* the same issue with them. The service doesn't pick the subsets up on a restart, but the .sub objects are still showing in the file structure on the server itself. Like others i had to resort to creating what i needed on the fly...
The behavior is same on 10.1.1 too i.e. on the server there are .sub files for aforementioned objects; but the dimension does not recognize them.

- Sachin
Check out my blog for some good information on TM1, SPSS
Post Reply