DIMIX trouble
Posted: Wed Nov 07, 2012 1:31 pm
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.
Discussing all things TM1, Planning Analytics, PAx and PAW
https://www.tm1forum.com/
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.
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 технического средства');
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
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...
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?
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?
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.