Page 1 of 1

Can we maintain a empty tm1 dimension

Posted: Mon Oct 14, 2019 10:09 am
by spartan
Hello All,

I have a scenario like, a ti process is used to create,insert and delete elements in the dimension, it is behaving normal except for the last element of the dimension. It is creating a dimension and adding the elements in the dimension through ti process and deleting as well. But it is not deleting the last element in the dimension.

1.Can a tm1 dimension be empty, without having any elements?

Re: Can we maintain a empty tm1 dimension

Posted: Mon Oct 14, 2019 11:31 am
by Wim Gielis
Yes. Did you explore the DimensionDeleteAllElements function ? (to be used with caution)

Re: Can we maintain a empty tm1 dimension

Posted: Mon Oct 14, 2019 5:07 pm
by lotsaram
spartan wrote: Mon Oct 14, 2019 10:09 am I have a scenario like, a ti process is used to create,insert and delete elements in the dimension, it is behaving normal except for the last element of the dimension. It is creating a dimension and adding the elements in the dimension through ti process and deleting as well. But it is not deleting the last element in the dimension.
Post your code.
If you *think* the TI *should* be deleting all elements but one element is getting left behind then chances are there is something wrong with your code.

Re: Can we maintain a empty tm1 dimension

Posted: Mon Oct 14, 2019 8:05 pm
by macsir
Are you trying to delete the elements from the first to the last?