Troublesome Characters

Post Reply
User avatar
Steve Vincent
Site Admin
Posts: 1054
Joined: Mon May 12, 2008 8:33 am
OLAP Product: TM1
Version: 10.2.2 FP1
Excel Version: 2010
Location: UK

Troublesome Characters

Post by Steve Vincent »

cross-post from the soon to be deceased Applix forum :o

Troublesome Characters

--------------------------------------------------------------------------------

No, not Mr Kirk :lol: but the wonderful non-alphanumeric characters that if you are not careful will cause all sorts of problems.

If someone could please check this is also the case in the most recent 9.1, i'll then log it and add to the growing list of "things that «ahem» me off about TM1" in Cognos Insight...

Simple enough to test. Dimension with a string attribute. In my example the dim is called "Organisation Breakdown (pre-May08)" and the attribute is called "Parent". I have a rule (in the "}ElementAttributes_Organisation Breakdown (pre-May08)" cube) to calculate the parent as follows;

['Parent']=S:ELPAR('Organisation Breakdown (pre-May08)',!Organisation Breakdown (pre-May08),1);

The rule refuses to compile with an "invalid string expression" error. Now i know this works on } cubes because the current version of this dimension was the basis for this one, the only difference being the name is "Organisation Breakdown" and doesn't have any parathensis. I'm pretty sure its the non-alphanumeric characters in the dim name that is screwing this up, so the plan is to log an enhancement request to ban the use of non-alphanumeric characters in cube and dim names. Something along the same lines as XP when you try and name a file with a / in it

Now i'm sure that won't suit everyone, so if it is also an issue in 9.1 then my request will specifically ask for a switch to be added to the server config file to allow the admin to decide themselves whether they wish to ban the use of such characters or not. Something along the lines of AllowNonAlphaNumericChars = T/F should work nicely, with a default of T just so when people are upgrading etc they don't get their models messed up.

TIA
If this were a dictatorship, it would be a heck of a lot easier, just so long as I'm the dictator.
Production: Planning Analytics 64 bit 2.0.5, Windows 2016 Server. Excel 2016, IE11 for t'internet
Alan Kirk
Site Admin
Posts: 6667
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: Troublesome Characters

Post by Alan Kirk »

['Parent']=S:ELPAR('Organisation Breakdown (pre-May08)',!Organisation Breakdown (pre-May08),1);

The rule refuses to compile with an "invalid string expression" error. Now i know this works on } cubes because the current version of this dimension was the basis for this one, the only difference being the name is "Organisation Breakdown" and doesn't have any parathensis. I'm pretty sure its the non-alphanumeric characters in the dim name that is screwing this up, so the plan is to log an enhancement request to ban the use of non-alphanumeric characters in cube and dim names. Something along the same lines as XP when you try and name a file with a / in it

Now i'm sure that won't suit everyone, so if it is also an issue in 9.1 then my request will specifically ask for a switch to be added to the server config file to allow the admin to decide themselves whether they wish to ban the use of such characters or not. Something along the lines of AllowNonAlphaNumericChars = T/F should work nicely, with a default of T just so when people are upgrading etc they don't get their models messed up.
Yup, I can confirm that it's the same in 9.1 SP3. It's definitely the brackets which are causing the problem; I created a dim which was named identically aside from the brackets, and the rule compiled with no problem at all.

We've been here before, too... remember (apologies to those who aren't members of the old Forum, you won't be able to see this):
http://forums.applix.com/forum/tm.asp?m=12074

I have to agree with Mike L in the old Forum, though; you'll be lucky to get this fix in. The approach these days seems to be that "If it doesn't add something to a demo for new customers, don't bother with it". Thus we don't get the ElIsAnc worksheet function, or a proper security model, or...
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
User avatar
Eric
MVP
Posts: 373
Joined: Wed May 14, 2008 1:21 pm
OLAP Product: TM1
Version: 9.4
Excel Version: 2003
Location: Chicago, IL USA

Re: Troublesome Characters

Post by Eric »

I think this might be fixed in 9.4, but do not know for sure.
Regards,
Eric
Blog: http://tm1-tipz.blogspot.com
Articles: http://www.google.com/reader/shared/use ... /label/TM1


Production: 32 bit 9.0 SP2, Windows 2000 Advanced Server. Web: 32 bit 9.0 SP2, Windows 2000 Server. Excel 2003
ScottW
Regular Participant
Posts: 152
Joined: Fri May 23, 2008 12:08 am
OLAP Product: TM1 CX
Version: 9.5 9.4.1 9.1.4 9.0 8.4
Excel Version: 2003 2007
Location: Melbourne, Australia
Contact:

Re: Troublesome Characters

Post by ScottW »

Don't get me started on the use of the @ symbol as the delimiter in Workflow dimension names ... :evil:
User avatar
Steve Vincent
Site Admin
Posts: 1054
Joined: Mon May 12, 2008 8:33 am
OLAP Product: TM1
Version: 10.2.2 FP1
Excel Version: 2010
Location: UK

Re: Troublesome Characters

Post by Steve Vincent »

Eric wrote:I think this might be fixed in 9.4, but do not know for sure.
4 years? really? Wow!

just in case anyone was still wondering about this, it's still a problem even in 9.5.2 :shock:
If this were a dictatorship, it would be a heck of a lot easier, just so long as I'm the dictator.
Production: Planning Analytics 64 bit 2.0.5, Windows 2016 Server. Excel 2016, IE11 for t'internet
tomok
MVP
Posts: 2836
Joined: Tue Feb 16, 2010 2:39 pm
OLAP Product: TM1, Palo
Version: Beginning of time thru 10.2
Excel Version: 2003-2007-2010-2013
Location: Atlanta, GA
Contact:

Re: Troublesome Characters

Post by tomok »

It doesn't cause me problems because I refuse to use anything other than a thru z, 0 thru 9, and _ in any of my TM1 (or any other system for that matter) objects. Better safe than sorry.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
User avatar
Steve Vincent
Site Admin
Posts: 1054
Joined: Mon May 12, 2008 8:33 am
OLAP Product: TM1
Version: 10.2.2 FP1
Excel Version: 2010
Location: UK

Re: Troublesome Characters

Post by Steve Vincent »

same here usually, but it had been so long that while i was putting some new models together i thought i'd try it again. at least in Windows if you try to name a file or path with certain characters it will tell you up front that you can't. shame TM1 doesn't offer you the same courtesy.
If this were a dictatorship, it would be a heck of a lot easier, just so long as I'm the dictator.
Production: Planning Analytics 64 bit 2.0.5, Windows 2016 Server. Excel 2016, IE11 for t'internet
Post Reply