Data Directory path issue

Post Reply
User avatar
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

Data Directory path issue

Post by Steve Rowe »

I've just hit and a resolved a strange pathing issue and was wondering if anyone can throw some light on what might have happened or changed. 903U9 and 64 bit Windows Server 2003 SP2

We've been running a TI process that calls a perl script quite happily for several months using this statement

Code: Select all

cmd /c dropeof.pl 
and ExecuteCommand. Since the perl script was in the data directory TI knew where it was and could execute it with no issues.

All of sudden as if by magic this stopped working, but specifying the full path to the perl script appears to have resolved the issue.

Code: Select all

cmd /c D:\TM1Data\Live\LiveData \dropeof.pl 
Happy to have resolved the issue but would love to understand why I needed to make the change. As far as I'm aware no changes have been made to the environment but I guess there could have been a windows update that I don't know about.

Cheers,
Steve
Technical Director
www.infocat.co.uk
User avatar
Mike Cowie
Site Admin
Posts: 484
Joined: Sun May 11, 2008 7:07 pm
OLAP Product: IBM TM1/PA, SSAS, and more
Version: Anything thru 11.x
Excel Version: 2003 - Office 365
Location: Alabama, USA
Contact:

Re: Data Directory path issue

Post by Mike Cowie »

Hi Steve,

Just a theory here since I've seen a similar problem in a much older version of TM1 (either 7.1 or 8.x) and changed to use full paths ever since: I think sometimes TM1's search path/current folder can get changed as it writes files to disk within the data folder structure. For example, if the last thing it wrote to disk was a subset file, it might be looking for your script in that }subs subfolder, rather than the data directory root.

Regards,
Mike
Mike Cowie
QueBIT Consulting, LLC

Are you lost without Print Reports in Planning Analytics for Excel (PAfE)? Get it back today, for free, with Print Reports for IBM Planning Analytics for Excel!
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: Data Directory path issue

Post by Alan Kirk »

Steve Rowe wrote:I've just hit and a resolved a strange pathing issue and was wondering if anyone can throw some light on what might have happened or changed. 903U9 and 64 bit Windows Server 2003 SP2

We've been running a TI process that calls a perl script quite happily for several months using this statement

Code: Select all

cmd /c dropeof.pl 
and ExecuteCommand. Since the perl script was in the data directory TI knew where it was and could execute it with no issues.

All of sudden as if by magic this stopped working, but specifying the full path to the perl script appears to have resolved the issue.

Code: Select all

cmd /c D:\TM1Data\Live\LiveData \dropeof.pl 
Happy to have resolved the issue but would love to understand why I needed to make the change. As far as I'm aware no changes have been made to the environment but I guess there could have been a windows update that I don't know about.
Mike may well be right; the way I work around that is to ensure that the path that I store my batch files in is specified (and is high enough up) in the Windows Server's PATH environment variable for TM1 to be able to find them without ambiguity, and without depending on the current drive/directory. In that way I don't have to burn up precious characters in specifying the full path when I call them via ExecuteCommand.
"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.
Post Reply