Element Not Found "FY"

Post Reply
tgaluskapatterson
Posts: 31
Joined: Thu Apr 25, 2013 1:36 pm
OLAP Product: TM1
Version: 10.1
Excel Version: 2007

Element Not Found "FY"

Post by tgaluskapatterson »

I am in architect 10.1 writing a rule. I am trying to automate my cube so if I enter a value in the 'System_ProcessInfo' cube it will update all the current FY in my code that were previously hard coded. In other word one entry point to roll my months and years.

Old Code
['Current Budget','Period Input','Variance Budget Basis $']=['Current Budget','FY 2014','Amount (LC)']-['Budget Basis','FY 2014','Amount (LC)'];

New Code
['Current Budget','Period Input','Variance Budget Basis $']=['Current Budget','FY'|' '|'20'|DB('System_ProcessInfo', 'stringValue23', 'Patt_Admin'),'Amount (LC)']-['Budget Basis','FY 2014','Amount (LC)'];

The code works just fine if I enter 'FY 2014'. However if I attempt to automate using 'FY'|' '|'20'|DB('System_ProcessInfo', 'stringValue23', 'Patt_Admin') it will not work. I am using this same code for other rules in the same cube so it seems strange. For some reason it appears not to be recognizing the concatenation bar | .

The error i receive is below.

Error:
Error on line 82:
Element Not Found "FY"
Duncan P
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: Element Not Found "FY"

Post by Duncan P »

Element names within [ ] cannot be expressions, either on the left or the right of the =. You will have to use a DB( ... ) instead.

If you have used this exact technique in another place and it has worked then I would very much like to know the exact details, as it really shouldn't have worked.
User avatar
jim wood
Site Admin
Posts: 3961
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: Element Not Found "FY"

Post by jim wood »

Bloody hell Duncan you were quick. I barely got time to hit reply!!! :D
Struggling through the quagmire of life to reach the other side of who knows where.
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
User avatar
jim wood
Site Admin
Posts: 3961
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: Element Not Found "FY"

Post by jim wood »

Also post moved. Enhancements is not meant to be a forum for coding questions. Please keep all coding questions with the main TM1 forum. Please refer to the request for assistance guidelines announcement.
Struggling through the quagmire of life to reach the other side of who knows where.
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
tgaluskapatterson
Posts: 31
Joined: Thu Apr 25, 2013 1:36 pm
OLAP Product: TM1
Version: 10.1
Excel Version: 2007

Re: Element Not Found "FY"

Post by tgaluskapatterson »

Appreciate the help. This worked great. It appears the other code i used was in a DB reference just didn't realize I couldn't use in a standard equals formula. Thanks!
Post Reply