Alias not unique (TI)
-
- Posts: 17
- Joined: Fri Feb 11, 2011 11:10 am
- OLAP Product: tm1
- Version: 10.1.1
- Excel Version: 2010
Alias not unique (TI)
Hi.
Need help with a TI process.
case:
Dim1 generic names. --> Alias name as is ===> TI to change alias to new alias names
Element1 2010 2011
Element2 2011 2012
Element3 2012 2013
Element4 2013 2014
......ok, example?
Using a version cube to set all the dimension variables/parameters.
When i try to roll the TI, i get attributes not unique.
Is there any way to get this to work without restarting server?
thanks in advance
Need help with a TI process.
case:
Dim1 generic names. --> Alias name as is ===> TI to change alias to new alias names
Element1 2010 2011
Element2 2011 2012
Element3 2012 2013
Element4 2013 2014
......ok, example?
Using a version cube to set all the dimension variables/parameters.
When i try to roll the TI, i get attributes not unique.
Is there any way to get this to work without restarting server?
thanks in advance
- jim wood
- Site Admin
- Posts: 3958
- Joined: Wed May 14, 2008 1:51 pm
- OLAP Product: TM1
- Version: PA 2.0.7
- Excel Version: Office 365
- Location: 37 East 18th Street New York
- Contact:
Re: Alias not unique (TI)
Attribute changes are not applied until the end of the tab. You might want to remove the attribute in the prolog and then rebuild it. Then insert the new values in Data / Epilog. That way you guarantee that the cache for the alias is clear.
Struggling through the quagmire of life to reach the other side of who knows where.
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
-
- Posts: 17
- Joined: Fri Feb 11, 2011 11:10 am
- OLAP Product: tm1
- Version: 10.1.1
- Excel Version: 2010
Re: Alias not unique (TI)
Hi.
Tried what you said, but cant get it to work.
When i try to manualy edit in the element attributes i get the message in the attatchment.
what does that mean?
Can`t see that i have duplicates ?
Thanks
Tried what you said, but cant get it to work.
When i try to manualy edit in the element attributes i get the message in the attatchment.
what does that mean?
Can`t see that i have duplicates ?
Thanks
- Attachments
-
- example.JPG (147.04 KiB) Viewed 11136 times
-
- Regular Participant
- Posts: 173
- Joined: Sat Mar 20, 2010 3:03 pm
- OLAP Product: TM1
- Version: 9.5.2
- Excel Version: 2007-10
Re: Alias not unique (TI)
Hello,
Are you trying to change the value of the alias?
If so then you may be being caught out by an alias that is still in use by another element. Consider the following simple dimension:-
Element - Alias
Year1 - 2012
Year2 - 2013
If I wanted to increment one year forward then you might try this in the attributes editor:-
Year1 - 2013
Year2 - 2014
However this would fail because until all of the changes are committed 2013 is still associated with Year2. If this is what is affecting you, then you will first need to clear all of the attribute values before attempting the update.
Are you trying to change the value of the alias?
If so then you may be being caught out by an alias that is still in use by another element. Consider the following simple dimension:-
Element - Alias
Year1 - 2012
Year2 - 2013
If I wanted to increment one year forward then you might try this in the attributes editor:-
Year1 - 2013
Year2 - 2014
However this would fail because until all of the changes are committed 2013 is still associated with Year2. If this is what is affecting you, then you will first need to clear all of the attribute values before attempting the update.
- jim wood
- Site Admin
- Posts: 3958
- Joined: Wed May 14, 2008 1:51 pm
- OLAP Product: TM1
- Version: PA 2.0.7
- Excel Version: Office 365
- Location: 37 East 18th Street New York
- Contact:
Re: Alias not unique (TI)
I have seen problems with aliases being cached. When you did as I said, did you destroy the alias? Try destroying it then complete a data save and rebuild it. I would however check very carefully to see if you have any alias / element names that are the same as what you are trying change before taking such a drastic step. If you still don't get any joy, try recycling the service which will for sure clear any cache,
Jim.
Jim.
Struggling through the quagmire of life to reach the other side of who knows where.
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
-
- Posts: 3
- Joined: Thu Aug 26, 2010 7:43 am
- OLAP Product: TM1
- Version: 9.52
- Excel Version: 2010
- Location: Germany
Re: Alias not unique (TI)
Hi,
I have a very similar Problem with an alias attribute. It's a dimension with SAP Fiscal and Booking Periods. Each Element called fiscper consists of the number of the year and the number of the month with a zero between, i.e 2014003 for March 2014.
Each element is in several Hierarchies. Now I want an alias called buper for each N-Element, the only difference ist that the zero between year and month is missing : 2014003 ==> alias 201403
I get the same errors as mentioned above in TI-Process or interactive in the attribute Editor. (The Attribute is not unique. Value 201403 can not be set as an attribute for element 2014003 in dimension SAP_Fiscper_V_Alias. )
I saved befor changing attributes, and I restarted TM1 for another trial. I always got the error.
What else could be wrong ?
Thanks
Dirk
I have a very similar Problem with an alias attribute. It's a dimension with SAP Fiscal and Booking Periods. Each Element called fiscper consists of the number of the year and the number of the month with a zero between, i.e 2014003 for March 2014.
Each element is in several Hierarchies. Now I want an alias called buper for each N-Element, the only difference ist that the zero between year and month is missing : 2014003 ==> alias 201403
I get the same errors as mentioned above in TI-Process or interactive in the attribute Editor. (The Attribute is not unique. Value 201403 can not be set as an attribute for element 2014003 in dimension SAP_Fiscper_V_Alias. )
I saved befor changing attributes, and I restarted TM1 for another trial. I always got the error.
What else could be wrong ?
Thanks
Dirk
-
- MVP
- Posts: 3230
- Joined: Mon Dec 29, 2008 6:26 pm
- OLAP Product: TM1, Jedox
- Version: PAL 2.1.5
- Excel Version: Microsoft 365
- Location: Brussels, Belgium
- Contact:
Re: Alias not unique (TI)
Hello
When doing this manually, it's working fine. TM1 10.2.
Create a new dimension, insert the element 2014003 in the Dimension Editor.
Go to the editor to change the attributes: add an alias, call it "test", and set 201403 as the value for the alias.
Works fine.
Can you limit the data source to make sure you're not running into a different problem, then the problem specified here?
And use a test dimension temporarily, to see whether it works fine in a completely new empty dimension.
When doing this manually, it's working fine. TM1 10.2.
Create a new dimension, insert the element 2014003 in the Dimension Editor.
Go to the editor to change the attributes: add an alias, call it "test", and set 201403 as the value for the alias.
Works fine.
Can you limit the data source to make sure you're not running into a different problem, then the problem specified here?
And use a test dimension temporarily, to see whether it works fine in a completely new empty dimension.
Last edited by Wim Gielis on Wed Apr 30, 2014 5:06 pm, edited 1 time in total.
Best regards,
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
- jim wood
- Site Admin
- Posts: 3958
- Joined: Wed May 14, 2008 1:51 pm
- OLAP Product: TM1
- Version: PA 2.0.7
- Excel Version: Office 365
- Location: 37 East 18th Street New York
- Contact:
Re: Alias not unique (TI)
Dirk,
TM1 treats zeros and spaces as nulls so in your case TM1 thinks both of them are the same value. You'll need to make them different by ading an under score or something like that,
Jim.
TM1 treats zeros and spaces as nulls so in your case TM1 thinks both of them are the same value. You'll need to make them different by ading an under score or something like that,
Jim.
Struggling through the quagmire of life to reach the other side of who knows where.
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
- Michel Zijlema
- Site Admin
- Posts: 712
- 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: Alias not unique (TI)
Hi Jim,jim wood wrote:Dirk,
TM1 treats zeros and spaces as nulls so in your case TM1 thinks both of them are the same value. You'll need to make them different by ading an under score or something like that,
Jim.
I'm not sure whether I'm misinterpreting your remark, but TM1 is certainly not treating zeroes as nulls. So 2014003 and 201403 are absolutely two different things...
(see also Wim's testing results above).
Michel
-
- Posts: 3
- Joined: Thu Aug 26, 2010 7:43 am
- OLAP Product: TM1
- Version: 9.52
- Excel Version: 2010
- Location: Germany
Re: Alias not unique (TI)
Hi,
in a new Dimension, it's possible to create the alias 210403 for the element 2014003.
Then I checked my TI-Process and I found an error, the elements 2014003 and 201403 were created. So the alias-Error was correct.
Then I fixed the bug, but it's still not possible to create the aliases. Then I looked for the Element 2014003 in the TI-Script generated Dimension in the Subset Editor.
If I filter with 2014003, The left window of the subset editor, shows the Element eleven times( its member of in the year hierarchy( 1x) , and member of the
Cumulation hierarchies March to December 2014, the Alias-element 201403 was not found ), so the eleven found Elements seems to be correct. But I only exspected to find the Element one time.
How can this behaviour be declared ? I think that each element has to be unique in one Dimension.
Then I tried to set alias manuylly in the Dialog. Now it was possible ! So I tried it with TI.
The code for creating the Elements positioned in DATA, code for aliases positioned in METADATA. This doesn't work, although no errors were reported. After creating a second process only
for the creating of the aliases, everything runs fine. All aliases were correctly created.
So the treatment of zeros seems to be changed, so that only spaces will further on make problems.
The the only remaining problem are the eleven found elements.
Thanks
Dirk.
in a new Dimension, it's possible to create the alias 210403 for the element 2014003.
Then I checked my TI-Process and I found an error, the elements 2014003 and 201403 were created. So the alias-Error was correct.
Then I fixed the bug, but it's still not possible to create the aliases. Then I looked for the Element 2014003 in the TI-Script generated Dimension in the Subset Editor.
If I filter with 2014003, The left window of the subset editor, shows the Element eleven times( its member of in the year hierarchy( 1x) , and member of the
Cumulation hierarchies March to December 2014, the Alias-element 201403 was not found ), so the eleven found Elements seems to be correct. But I only exspected to find the Element one time.
How can this behaviour be declared ? I think that each element has to be unique in one Dimension.
Then I tried to set alias manuylly in the Dialog. Now it was possible ! So I tried it with TI.
The code for creating the Elements positioned in DATA, code for aliases positioned in METADATA. This doesn't work, although no errors were reported. After creating a second process only
for the creating of the aliases, everything runs fine. All aliases were correctly created.
So the treatment of zeros seems to be changed, so that only spaces will further on make problems.
The the only remaining problem are the eleven found elements.
Thanks
Dirk.
- Michel Zijlema
- Site Admin
- Posts: 712
- 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: Alias not unique (TI)
I'm sure the 2014003 element will be unique in you dimension. If you click the All button in the subset editor and do a wildcard search/filter on 2014003 you will see the element only once. Also if you select the 11 occurencies you see in your subset and look in on the right side (properties pane enabled), you will see all 11 occurences have the same dimension index number.qpf wrote:If I filter with 2014003, The left window of the subset editor, shows the Element eleven times( its member of in the year hierarchy( 1x) , and member of the
Cumulation hierarchies March to December 2014, the Alias-element 201403 was not found ), so the eleven found Elements seems to be correct. But I only exspected to find the Element one time.
How can this behaviour be declared ? I think that each element has to be unique in one Dimension.
Here's where you're going wrong. Metadata (dimension structures) need to be updated in the METADATA tab, not DATA. If you update the dimension structure on the METADATA tab, you can load the aliases on the DATA tab in the same process...qpf wrote:The code for creating the Elements positioned in DATA, code for aliases positioned in METADATA. This doesn't work, although no errors were reported. After creating a second process only
for the creating of the aliases, everything runs fine. All aliases were correctly created.
Michel
-
- Posts: 3
- Joined: Thu Aug 26, 2010 7:43 am
- OLAP Product: TM1
- Version: 9.52
- Excel Version: 2010
- Location: Germany
Re: Alias not unique (TI)
alternatively placing the Code into Prolog and Epilog works also fine. I think the Reason ist that TI saves the Dimension after a Tab is finished, and the elements can be found only after saving.
Dirk
Dirk
- jim wood
- Site Admin
- Posts: 3958
- Joined: Wed May 14, 2008 1:51 pm
- OLAP Product: TM1
- Version: PA 2.0.7
- Excel Version: Office 365
- Location: 37 East 18th Street New York
- Contact:
Re: Alias not unique (TI)
Yes, I got myself mixed up a little on that one. Thinking about another problem while answering another. Thanks for pointing it out. Hopefully I didn't confuse anybody too much.Michel Zijlema wrote:Hi Jim,jim wood wrote:Dirk,
TM1 treats zeros and spaces as nulls so in your case TM1 thinks both of them are the same value. You'll need to make them different by ading an under score or something like that,
Jim.
I'm not sure whether I'm misinterpreting your remark, but TM1 is certainly not treating zeroes as nulls. So 2014003 and 201403 are absolutely two different things...
(see also Wim's testing results above).
Michel
Struggling through the quagmire of life to reach the other side of who knows where.
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7