Page 1 of 1
Unable to refresh subsets
Posted: Thu Apr 28, 2011 1:31 pm
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
Re: Unable to refresh subsets
Posted: Thu Apr 28, 2011 1:34 pm
by ellissj3
Can you please post code? please make sure you delete the subsets /views before you establish it within your TI process.
Re: Unable to refresh subsets
Posted: Thu Apr 28, 2011 1:44 pm
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
Re: Unable to refresh subsets
Posted: Thu Apr 28, 2011 2:06 pm
by ellissj3
Try logging out of your session, then logging back in and re-executing your TI Code.
Re: Unable to refresh subsets
Posted: Thu Apr 28, 2011 2:09 pm
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.
Re: Unable to refresh subsets
Posted: Thu Apr 28, 2011 2:20 pm
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