Unable to refresh subsets

Post Reply
pradeep.k.jagadeesan
Posts: 28
Joined: Tue Jun 16, 2009 1:03 pm
OLAP Product: IBM Cognos TM1
Version: 9.5.1
Excel Version: 2007
Location: India

Unable to refresh subsets

Post by pradeep.k.jagadeesan »

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
ellissj3
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

Post by ellissj3 »

Can you please post code? please make sure you delete the subsets /views before you establish it within your TI process.
pradeep.k.jagadeesan
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

Post by pradeep.k.jagadeesan »

Here is the code written in Prolog:

bookOfBusDimName = 'BookOfBusiness';
subsetName = 'tempSubset_Forecast_LoadActualData';

# remove the subsets
SubsetDestroy(bookOfBusDimName, subsetName);

Thanks
Pradeep J
ellissj3
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

Post by ellissj3 »

Try logging out of your session, then logging back in and re-executing your TI Code.
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: Unable to refresh subsets

Post by tomok »

pradeep.k.jagadeesan wrote:SubsetDestroy(bookOfBusDimName, subsetName)
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.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
User avatar
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

Post by Michel Zijlema »

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
Post Reply