Hi,
When I tried to refresh a subset using TI process, Log generated an error statement such as Subset <Name> is being used by a view and cannot be deleted.
Please help me to resolve this issue.
Thanks in advance.
Pradeep J
Unable to refresh subsets
-
- Posts: 28
- Joined: Tue Jun 16, 2009 1:03 pm
- OLAP Product: IBM Cognos TM1
- Version: 9.5.1
- Excel Version: 2007
- Location: India
-
- Posts: 54
- Joined: Tue Jun 15, 2010 1:43 pm
- OLAP Product: Cognos TM1
- Version: 9.0 - 10.2
- Excel Version: 2010
Re: Unable to refresh subsets
Can you please post code? please make sure you delete the subsets /views before you establish it within your TI process.
-
- Posts: 28
- Joined: Tue Jun 16, 2009 1:03 pm
- OLAP Product: IBM Cognos TM1
- Version: 9.5.1
- Excel Version: 2007
- Location: India
Re: Unable to refresh subsets
Here is the code written in Prolog:
bookOfBusDimName = 'BookOfBusiness';
subsetName = 'tempSubset_Forecast_LoadActualData';
# remove the subsets
SubsetDestroy(bookOfBusDimName, subsetName);
Thanks
Pradeep J
bookOfBusDimName = 'BookOfBusiness';
subsetName = 'tempSubset_Forecast_LoadActualData';
# remove the subsets
SubsetDestroy(bookOfBusDimName, subsetName);
Thanks
Pradeep J
-
- Posts: 54
- Joined: Tue Jun 15, 2010 1:43 pm
- OLAP Product: Cognos TM1
- Version: 9.0 - 10.2
- Excel Version: 2010
Re: Unable to refresh subsets
Try logging out of your session, then logging back in and re-executing your TI Code.
-
- 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: Unable to refresh subsets
You can't destroy a subset if it is actively used in a view. if you want to destory the subset you will have to destroy all views that use it first. Of course this means you'll have to rebuild all the views after you are done rebuilding the subset.pradeep.k.jagadeesan wrote:SubsetDestroy(bookOfBusDimName, subsetName)
- Michel Zijlema
- Site Admin
- Posts: 713
- Joined: Wed May 14, 2008 5:22 am
- OLAP Product: TM1, PALO
- Version: both 2.5 and higher
- Excel Version: 2003-2007-2010
- Location: Netherlands
- Contact:
Re: Unable to refresh subsets
If the requirement is to clear the subset (by deleting and recreating the subset) you could use the SubsetDeleteAllElements function instead. This will not require you to delete any views.
Michel
Michel