TI error - File not found

Post Reply
Sandhya Kumar
Posts: 43
Joined: Thu Sep 10, 2009 6:36 am
OLAP Product: TM1
Version: 9.0 and above
Excel Version: 2003

TI error - File not found

Post by Sandhya Kumar »

Hi,

I am using TM1 9.4 FP2. I have a TI process which outputs the data to a CSV file:

ASCIIOutput('\\servername\foldername\ReportExtract.csv',Source,Version,Market,Code,Project,RespCode,Yr,Mth,Value);

The same process is getting executed successfully in one environment and in another environment, I am getting the below error:

"Corporate","Actual","AMGCL","8102","3719","00000000","2009","Mar","1.e-002",Data Source line (1) Error: Data procedure line (5): File "\\servername\foldername\ReportExtract.csv" not found.

I have necessary Change permissions for the above target folder. Could someone help in finding out what the problem is? Thanks.
User avatar
Olivier
Community Contributor
Posts: 159
Joined: Thu Jun 26, 2008 5:46 am
OLAP Product: TM1
Version: Tm1 10.2.2fp4 -> 2.09
Excel Version: Excel 2013 - 2019
Location: Sydney

Re: TI error - File not found

Post by Olivier »

Hi,
ASCIIOutput('\\servername\foldername\ReportExtract.csv',Source,Version,Market,Code,Project,RespCode,Yr,Mth,Value);
In this instance are 'servername', 'foldername' avriables that you specify in your TI ?

If yes, you need to rebuild the string inside the function by using the concatenation command |

ASCIIOutput('\\' | servername | '\' | foldername | ' | \ReportExtract.csv',Source,Version,Market,Code,Project,RespCode,Yr,Mth,Value);

Hope this helps,

Olivier
HTH
Olivier
Alan Kirk
Site Admin
Posts: 6645
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: TI error - File not found

Post by Alan Kirk »

Sandhya Kumar wrote:Hi,

I am using TM1 9.4 FP2. I have a TI process which outputs the data to a CSV file:

ASCIIOutput('\\servername\foldername\ReportExtract.csv',Source,Version,Market,Code,Project,RespCode,Yr,Mth,Value);

The same process is getting executed successfully in one environment and in another environment, I am getting the below error:

"Corporate","Actual","AMGCL","8102","3719","00000000","2009","Mar","1.e-002",Data Source line (1) Error: Data procedure line (5): File "\\servername\foldername\ReportExtract.csv" not found.

I have necessary Change permissions for the above target folder. Could someone help in finding out what the problem is? Thanks.
You have the permissions, or the login that the TM1 server is running under (on a remote server?) has the permissions?

It's the latter which will determine whether the server can write to the network share, even if you're the one triggering the process. If the server is running as a Local System service, it may not have the permissions needed to access network resources.
"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.
Gregor Koch
MVP
Posts: 263
Joined: Fri Jun 27, 2008 12:15 am
OLAP Product: Cognos TM1, CX
Version: 9.0 and up
Excel Version: 2007 and up

Re: TI error - File not found

Post by Gregor Koch »

Hi

I take it you replaced your real servername with "servername" for the post because otherwise this probably wouldn't be working in one environment and not in another. I'll also assume that the two are separate server machines, correct me if I am wrong.

Your personal access rights to the folder won't change anything unless you run the TM1 server in 'the other environment' under your login. this is because it is not your windows login that tries to write to the file.

Maybe check if the user which runs the TM1 Server on the server box actually can 'see' the file (eg the share name for the foldername) ?

Cheers
Gregor Koch
MVP
Posts: 263
Joined: Fri Jun 27, 2008 12:15 am
OLAP Product: Cognos TM1, CX
Version: 9.0 and up
Excel Version: 2007 and up

Re: TI error - File not found

Post by Gregor Koch »

Alan, you again.
I should be submitting these right away when I wrote them or maybe check right before I do whether Alan wrote something.
Alan Kirk
Site Admin
Posts: 6645
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: TI error - File not found

Post by Alan Kirk »

Gregor Koch wrote:Alan, you again.
I should be submitting these right away when I wrote them or maybe check right before I do whether Alan wrote something.
Option 1 wouldn't do you any good; I'd just fire up the De Lorean and set the flux capacitors to land me 2 minutes before your posting. :D

(If it's any consolation I'm off to the gym in about 10 minutes so you've got a clear run for the next couple of hours. :lol: )
"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
John Hobson
Site Admin
Posts: 330
Joined: Sun May 11, 2008 4:58 pm
OLAP Product: Any
Version: 1.0
Excel Version: 2020
Location: Lytham UK
Contact:

Re: TI error - File not found

Post by John Hobson »

I seem to recall having a similar problem that we solved in the end by substituting a full file path (e.g. e:\tm1data\file.csv) for the UNC type path you are using
John Hobson
The Planning Factory
Sandhya Kumar
Posts: 43
Joined: Thu Sep 10, 2009 6:36 am
OLAP Product: TM1
Version: 9.0 and above
Excel Version: 2003

Re: TI error - File not found

Post by Sandhya Kumar »

Hi all...

Thanks for the inputs... :)

Yes.. i have replaced the original server name and folder name as \servername\foldername. In the other environment, it is a different server. I am a part of the group which has WRITE permission to this folder in both the servers. I am able to manually create folders and files inside \servername\foldername using my Windows ID.

My Windows ID is SKUMAR and I log in to TM1 using the client name SKUMAR and run the process in both the environments. Still one works and the other doesn't... :cry:
Alan Kirk
Site Admin
Posts: 6645
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: TI error - File not found

Post by Alan Kirk »

John Hobson wrote:I seem to recall having a similar problem that we solved in the end by substituting a full file path (e.g. e:\tm1data\file.csv) for the UNC type path you are using
Just one thing to be wary of with that; in later versions (certainly by 9.1) you can't use a mapped network drive letter as a path. If it's not a local drive path (eg C:\BlahBlah or D:\BlahBlah, assuming two partitions) then it has to be a UNC reference.

8.2.12 doesn't care; it'll use either a mapped drive or a local one or a UNC one, but I recall that when we implemented Web under 9.1 we had to change all of the values in our control cube which used a mapped drive letter. Can't find a reference to it in the manuals at the moment, but I'm pretty sure that I read it; certainly I'm sure that any processes which used a mapped drive letter didn't work under 9.1, even though the server could see it.
"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.
Gregor Koch
MVP
Posts: 263
Joined: Fri Jun 27, 2008 12:15 am
OLAP Product: Cognos TM1, CX
Version: 9.0 and up
Excel Version: 2007 and up

Re: TI error - File not found

Post by Gregor Koch »

Hi

As Alan hopefully is in the gym...

Again, your Windows ID and how you log onto the TM1 Server (not the server machine) hasn't really anything to do with what seems to be going on. So just for now, forget your Windows ID.

Please check which user, this can be a local system account or a domain user which has been created just for this purpose, runs the tm1 service on the server machine, again I'll make an assumption that your TM1 Server runs as a service.

Cheers
Sandhya Kumar
Posts: 43
Joined: Thu Sep 10, 2009 6:36 am
OLAP Product: TM1
Version: 9.0 and above
Excel Version: 2003

Re: TI error - File not found

Post by Sandhya Kumar »

In the server where my process aborts, the TM1 service is running under an admin user account. I do not have necessary permissions to check the services in the other server where I am able to run successfully. :?
Sandhya Kumar
Posts: 43
Joined: Thu Sep 10, 2009 6:36 am
OLAP Product: TM1
Version: 9.0 and above
Excel Version: 2003

Re: TI error - File not found

Post by Sandhya Kumar »

And one more thing- I just tried writing into another folder in the same server and the process is successful..

ASCIIOutput('\\servername\d$\temp\test.csv',Source,Version,Market,Code,Project,RespCode,Yr,Mth,Value);
Gregor Koch
MVP
Posts: 263
Joined: Fri Jun 27, 2008 12:15 am
OLAP Product: Cognos TM1, CX
Version: 9.0 and up
Excel Version: 2007 and up

Re: TI error - File not found

Post by Gregor Koch »

Notice the different syntax for the location ..d$...
Go with Alan's and John's lead.
Sandhya Kumar
Posts: 43
Joined: Thu Sep 10, 2009 6:36 am
OLAP Product: TM1
Version: 9.0 and above
Excel Version: 2003

Re: TI error - File not found

Post by Sandhya Kumar »

Yes it worked when i replaced the actual path as E:\Foldername\test.csv
But I am not convinced why my earlier path reference worked in one server and did not in another!!

Thanks greg, Alan and John :) I'm loving this forum!
Last edited by Sandhya Kumar on Wed Sep 16, 2009 8:42 am, edited 1 time in total.
User avatar
Steve Rowe
Site Admin
Posts: 2455
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

Re: TI error - File not found

Post by Steve Rowe »

One other thing that happens in my work environment is that for "security reasons" a particular server cannot see itself using it's own UNC path.

So all the clients can use \\tm1prod\blah\ but "tm1prod" itself cannot access that path and I have to use the local drive path name. I'm told this is because tm1prod is an alias for the server so that we can switch to our hot backup tm1 environment without requiring the users to change their TM1 host parameters.

I'm not convinced this makes sense but it's what I've been told by the IT people that look after the infrastructure....
Cheers,
Technical Director
www.infocat.co.uk
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: TI error - File not found

Post by Steve Vincent »

Came across this the other day on a new build when i was trying to transfer data from one box to another.

server A has a service called TM1-A running using a local account called TM1admin.
server B has a service called TM1-B running using a local account called TM1admin.

server A tries to create an ascii file on server B using UNC paths and fails as mentioned. The security that is relevant is that of the local account TM1admin, not anything else. What you cannot do is add //serverA/TM1admin to the security of anything on server B - it just won't know what you are talking about as its a local account. Windows security has this odd behavoiur in this case where if 2 servers try to talk and the account on one exists on the other, then it'll work only if the passwords on both accounts are identical.

I think this is possibly what you are seeing. Ask IT to find out what account the TM1 service is running with then check if the same named account is on the other server. If it is then the passwords must be different, so you then have to convince them to change one to match the other :)
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