Hi Team,
I have 40-50 dimensions where each has 3-4 system generated Subsets , when i say system generated these are create by MDX statments in the processes.
Can you share the code to delete the subsets of all dimensions which are created with Prefix as 'SYS'.
Thanks
Deepak
Need to Create TI process to delete the subsets
-
- Posts: 15
- Joined: Fri Jul 23, 2010 9:49 am
- OLAP Product: TM1 10.2.2 Cognos Planning10
- Version: TM1 10.2.2 Cognos Planning10
- Excel Version: 2010
- ioscat
- Regular Participant
- Posts: 209
- Joined: Tue Jul 10, 2012 8:26 am
- OLAP Product: Contributor
- Version: 9.5.2 10.1.1 10.2
- Excel Version: 07+10+13
- Contact:
Re: Need to Create TI process to delete the subsets
is possible to somehow call TM1DimensionSubsets?
-
- Site Admin
- Posts: 1458
- Joined: Wed May 28, 2008 9:09 am
Re: Need to Create TI process to delete the subsets
There's no direct TI command - but public subsets sit in the server directory in folders named <dimension>}subs . Write a TI to read the filesystem (remember the 'base' directory for TI is the server directory) using WildCardFileSearch. Once you've found the subset use SubsetDestroy. Word of warning - this will fail if the subset is part of a view, and they often will be.
-
- MVP
- Posts: 3704
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: Need to Create TI process to delete the subsets
If you have already looked at the bedrock code library how could you have failed to notice that it includes processes to perform exactly this function for views and subsets?