DIMIX trouble
- ioscat
- Regular Participant
- Posts: 209
- Joined: Tue Jul 10, 2012 8:26 am
- OLAP Product: Contributor
- Version: 9.5.2 10.1.1 10.2
- Excel Version: 07+10+13
- Contact:
DIMIX trouble
my DIMIX in TI variables can't find element, while i can find it by wildcard searching. Can't get what may be the reason. The same function in another process works properly.
-
- Regular Participant
- Posts: 164
- Joined: Tue May 04, 2010 10:49 am
- OLAP Product: Cognos TM1
- Version: 9.4.1 - 10.1
- Excel Version: 2003 and 2007
Re: DIMIX trouble
ioscat wrote:my DIMIX in TI variables can't find element, while i can find it by wildcard searching. Can't get what may be the reason. The same function in another process works properly.
So dimix is returning 0 for an element that exists in the dimension? That shouldn't happen. Maybe you can post your actual code?
- ioscat
- Regular Participant
- Posts: 209
- Joined: Tue Jul 10, 2012 8:26 am
- OLAP Product: Contributor
- Version: 9.5.2 10.1.1 10.2
- Excel Version: 07+10+13
- Contact:
Re: DIMIX trouble
vTechEquipmentID= Dimix ( 'Техническое средство' , vTechEquipmentIDTemp);
it returns zero for one of vTechEquipmentIDTemp while i can find it in dimension
it returns zero for one of vTechEquipmentIDTemp while i can find it in dimension
- ioscat
- Regular Participant
- Posts: 209
- Joined: Tue Jul 10, 2012 8:26 am
- OLAP Product: Contributor
- Version: 9.5.2 10.1.1 10.2
- Excel Version: 07+10+13
- Contact:
Re: DIMIX trouble
Code: Select all
#vTechEquipmentID=attrs( 'Техническое средство',DIMNM( 'Техническое средство',Dimix ( 'Техническое средство' , '066.08.2.2.0801022204.ВЛ876ДОР')),'GUID технического средства');
#vTechEquipmentID=dimix( 'Техническое средство',attrs( 'Техническое средство',DIMNM( 'Техническое средство',Dimix ( 'Техническое средство' , '066.08.2.2.0801022204.ВЛ876ДОР')),'GUID технического средства'));
vTechEquipmentID=attrs( 'Техническое средство',DIMNM( 'Техническое средство',Dimix ( 'Техническое средство' , '066.08.2.2.0801022204.ВЛ876ДОР')),'GUID технического средства');
-
- Regular Participant
- Posts: 164
- Joined: Tue May 04, 2010 10:49 am
- OLAP Product: Cognos TM1
- Version: 9.4.1 - 10.1
- Excel Version: 2003 and 2007
Re: DIMIX trouble
So the value of vTechEquipmentIDTemp is exactly the name of an element (or an alias)? Have you tried writing the value of vTechEquipmentIDTemp to a file using asciioutput to make sure?ioscat wrote:vTechEquipmentID= Dimix ( 'Техническое средство' , vTechEquipmentIDTemp);
it returns zero for one of vTechEquipmentIDTemp while i can find it in dimension
- Steve Rowe
- Site Admin
- Posts: 2464
- Joined: Wed May 14, 2008 4:25 pm
- OLAP Product: TM1
- Version: TM1 v6,v7,v8,v9,v10,v11+PAW
- Excel Version: Nearly all of them
Re: DIMIX trouble
I can't help directly put I suggest you ASCIIOutput the various bits and pieces and make sure what you think is happening really is.
I've never know DIMIX go wrong in this way.
I've never know DIMIX go wrong in this way.
Technical Director
www.infocat.co.uk
www.infocat.co.uk
- ioscat
- Regular Participant
- Posts: 209
- Joined: Tue Jul 10, 2012 8:26 am
- OLAP Product: Contributor
- Version: 9.5.2 10.1.1 10.2
- Excel Version: 07+10+13
- Contact:
Re: DIMIX trouble
well, what should i put to text? i try to put not variable but digits and letters to formula and get no progress.
i wrote rule like dimix(.., attrs(.., elementprincipalname, aliasname )) and get zero while attrs(.., elementprincipalname, aliasname ) gives string value...
Well, how many elements are able to exist in dimension? More than 50K?
i wrote rule like dimix(.., attrs(.., elementprincipalname, aliasname )) and get zero while attrs(.., elementprincipalname, aliasname ) gives string value...
Well, how many elements are able to exist in dimension? More than 50K?
-
- MVP
- Posts: 600
- Joined: Wed Aug 17, 2011 1:19 pm
- OLAP Product: TM1
- Version: 9.5.2 10.1 10.2
- Excel Version: 2003 2007
- Location: York, UK
Re: DIMIX trouble
Is it possible that the name in the variable and the name in the dimension differ in case only, or are they exactly the same?
-
- Regular Participant
- Posts: 164
- Joined: Tue May 04, 2010 10:49 am
- OLAP Product: Cognos TM1
- Version: 9.4.1 - 10.1
- Excel Version: 2003 and 2007
Re: DIMIX trouble
The idea is to output to text the expressions or variables you're passing to dimix to see what they actually contain.ioscat wrote:well, what should i put to text? i try to put not variable but digits and letters to formula and get no progress.
i wrote rule like dimix(.., attrs(.., elementprincipalname, aliasname )) and get zero while attrs(.., elementprincipalname, aliasname ) gives string value...
Actually I'm not really sure what you're trying to do. Perhaps you might want to explain?
The number of elements in the dimension isn't going to be the problem.Well, how many elements are able to exist in dimension? More than 50K?
- Steve Rowe
- Site Admin
- Posts: 2464
- Joined: Wed May 14, 2008 4:25 pm
- OLAP Product: TM1
- Version: TM1 v6,v7,v8,v9,v10,v11+PAW
- Excel Version: Nearly all of them
Re: DIMIX trouble
Something like this
nNum=Dimix('Dimension' , sElName);
If (nNum =0 );
Asciioutput ('DimixFails.cma' , sElName);
EndIf;
To get >0 sElName should be any valid alias (not attribute) or element principal name. (also returns >0 on subset names too but lets not got there...)
Cheers,
nNum=Dimix('Dimension' , sElName);
If (nNum =0 );
Asciioutput ('DimixFails.cma' , sElName);
EndIf;
To get >0 sElName should be any valid alias (not attribute) or element principal name. (also returns >0 on subset names too but lets not got there...)
Cheers,
Technical Director
www.infocat.co.uk
www.infocat.co.uk
- ioscat
- Regular Participant
- Posts: 209
- Joined: Tue Jul 10, 2012 8:26 am
- OLAP Product: Contributor
- Version: 9.5.2 10.1.1 10.2
- Excel Version: 07+10+13
- Contact:
Re: DIMIX trouble
deleted all attributes and created them again - now seems to work fine.
- qml
- MVP
- Posts: 1098
- Joined: Mon Feb 01, 2010 1:01 pm
- OLAP Product: TM1 / Planning Analytics
- Version: 2.0.9 and all previous
- Excel Version: 2007 - 2016
- Location: London, UK, Europe
Re: DIMIX trouble
Apparently it's around 2,000,000,000 elements per dimension, which is many times over being ridiculous if anyone ever gets close to that number.ioscat wrote:Well, how many elements are able to exist in dimension? More than 50K?
Kamil Arendt
-
- MVP
- Posts: 733
- Joined: Wed May 14, 2008 11:06 pm
Re: DIMIX trouble
Bit of a long shot... check your message log to see if you have any errors on start-up related to rule files. I've had issues in a number of 9.x.x versions where a rule compilation failure leads to problems with aliases. I've had the DIMIX failure and also the more common issue where DBRWs return *KEY_ERR when one of the element references is an alias. Unfortunately, I've not been able to pinpoint the issue to consistently replicate it and often the afflicted dimension isn't in the cube that has the failing rule so this is still to one to watch.ioscat wrote:deleted all attributes and created them again - now seems to work fine.
Robin Mackenzie