"invalid string error"- tm1 9.5.2- server explorer
Posted: Wed Sep 27, 2017 6:30 pm
i am having an issue with the rules on a specific cube called "manufacturing".
this is the original syntax:
['Number_Of_Appearance_Temp2_Manual' , 'C05P201'] = N:
IF ((ATTRS('D_Product' , !D_Product , 'Mapping_To_PC') @<>'' ) &
(ELISANC('D_Paper_Type','CS_ALL',DB('Manufacturing',ATTRS('D_Product' , !D_Product , 'Mapping_To_PC'),!D_Product,!D_Project,!D_Year,!D_Month,!D_Version,'Paper_Type'))=1),
DB('Manufacturing',ATTRS('D_Product' , !D_Product , 'Mapping_To_PC') ,!D_Product,!D_Project,!D_Year,!D_Month,!D_Version,'Number_Of_Appearance_Temp2_Manual')
this is the changed syntax:
['Number_Of_Appearance_Temp2_Manual' , 'C05P201'] = N:
IF ((DB('ben_test_product_attributes',!D_Year,!D_Product_Copy,'Mapping_To_PC') @<>'' ) &
(ELISANC('D_Paper_Type','CS_ALL',DB('Manufacturing',DB('ben_test_product_attributes',!D_Year,!D_Product_Copy,'Mapping_To_PC'),!D_Product,!D_Project,!D_Year,!D_Month,!D_Version,'Paper_Type'))=1),
DB('Manufacturing',DB('ben_test_product_attributes',!D_Year,!D_Product_Copy,'Mapping_To_PC') ,!D_Product,!D_Project,!D_Year,!D_Month,!D_Version,'Number_Of_Appearance_Temp2_Manual')
Basically, I changed the reference from ATTRS(....) to DB(.....).
it should return the same value, because the cube in 'ben_test_product_attributes' in the DB(...) works fine.
THE Error i'm getting is:
Syntax Error on or before;
!D_Product_Copy,'Map
invalid string expression
Rule could not be attached to the cube ,but changes are saved.
i was hoping someone can help me.
i've looked this error up in the internet and it has a few suggestions:
1. change the name of the dimension D_Product_Copy
2. use in the first line: = S: INSTEAD OF N:
NOTE: D_Product_Copy is a copied dimension of D_product through copy/paste in the tm1 folder. maybe it is related.
I'm open to suggestions.
thank you
this is the original syntax:
['Number_Of_Appearance_Temp2_Manual' , 'C05P201'] = N:
IF ((ATTRS('D_Product' , !D_Product , 'Mapping_To_PC') @<>'' ) &
(ELISANC('D_Paper_Type','CS_ALL',DB('Manufacturing',ATTRS('D_Product' , !D_Product , 'Mapping_To_PC'),!D_Product,!D_Project,!D_Year,!D_Month,!D_Version,'Paper_Type'))=1),
DB('Manufacturing',ATTRS('D_Product' , !D_Product , 'Mapping_To_PC') ,!D_Product,!D_Project,!D_Year,!D_Month,!D_Version,'Number_Of_Appearance_Temp2_Manual')
this is the changed syntax:
['Number_Of_Appearance_Temp2_Manual' , 'C05P201'] = N:
IF ((DB('ben_test_product_attributes',!D_Year,!D_Product_Copy,'Mapping_To_PC') @<>'' ) &
(ELISANC('D_Paper_Type','CS_ALL',DB('Manufacturing',DB('ben_test_product_attributes',!D_Year,!D_Product_Copy,'Mapping_To_PC'),!D_Product,!D_Project,!D_Year,!D_Month,!D_Version,'Paper_Type'))=1),
DB('Manufacturing',DB('ben_test_product_attributes',!D_Year,!D_Product_Copy,'Mapping_To_PC') ,!D_Product,!D_Project,!D_Year,!D_Month,!D_Version,'Number_Of_Appearance_Temp2_Manual')
Basically, I changed the reference from ATTRS(....) to DB(.....).
it should return the same value, because the cube in 'ben_test_product_attributes' in the DB(...) works fine.
THE Error i'm getting is:
Syntax Error on or before;
!D_Product_Copy,'Map
invalid string expression
Rule could not be attached to the cube ,but changes are saved.
i was hoping someone can help me.
i've looked this error up in the internet and it has a few suggestions:
1. change the name of the dimension D_Product_Copy
2. use in the first line: = S: INSTEAD OF N:
NOTE: D_Product_Copy is a copied dimension of D_product through copy/paste in the tm1 folder. maybe it is related.
I'm open to suggestions.
thank you