ASCIIOUTPUT file extension has a $ sign at the end

Post Reply
grusty
Posts: 13
Joined: Thu Oct 11, 2018 10:11 pm
OLAP Product: IBM Planning Analytics
Version: 2.0
Excel Version: 2013 32 bit

ASCIIOUTPUT file extension has a $ sign at the end

Post by grusty »

Hi Experts,

Has anyone come across this issue? The output file has a '$' after the '.csv'? I've scoured the internet and these forums and can't seem to find a way to fix this. How do I remove the $ after exporting a cube view to a csv file without doing it manually? I'm using the exported data file to create a journal entry import file.

Image

Code: Select all

ASCIIOUTPUT('\\PRIMARY\general\Finance\TM1 Imports\[b]test_quotes.csv[/b]','item1','3/1/2020','-1.11');
filename in windows directory: 'test_quotes.csv$'
ascheevel
Community Contributor
Posts: 312
Joined: Fri Feb 15, 2013 5:49 pm
OLAP Product: TM1
Version: PA 2.0.9.1
Excel Version: 365
Location: Minneapolis, USA

Re: ASCIIOUTPUT file extension has a $ sign at the end

Post by ascheevel »

Does your file "test_quotes.csv" already exist on the server and is it possibly open in another program. The $ at the end of the extension is a temp file and it will get stuck like that when it's unable to replace the existing file at the completion of TI execution. If you look at the server log after your process runs, you may see a "sf_DeleteFile: Error..." and that it cannot access the file because it's being used by another process.
grusty
Posts: 13
Joined: Thu Oct 11, 2018 10:11 pm
OLAP Product: IBM Planning Analytics
Version: 2.0
Excel Version: 2013 32 bit

Re: ASCIIOUTPUT file extension has a $ sign at the end

Post by grusty »

ascheevel wrote: Thu Apr 09, 2020 3:55 pm Does your file "test_quotes.csv" already exist on the server and is it possibly open in another program. The $ at the end of the extension is a temp file and it will get stuck like that when it's unable to replace the existing file at the completion of TI execution. If you look at the server log after your process runs, you may see a "sf_DeleteFile: Error..." and that it cannot access the file because it's being used by another process.
Never even occurred to me to check the log, rookie mistake :roll: I'll see if I can find a solution by googling. Thanks for your help!

33716 [26fd] ERROR 2020-04-09 11:06:20.185 TM1.Server sf_Rename: Failed to rename (\\PRIMARY\general\Finance\TM1 Imports\test_quotes.cma$) to (\\PRIMARY\general\Finance\TM1 Imports\test_quotes.cma). Error: error code:5 reason:"Access is denied." file:""\\PRIMARY\general\Finance\TM1 Imports\test_quotes.cma$" : "\\PRIMARY\general\Finance\TM1 Imports\test_quotes.cma" "
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: ASCIIOUTPUT file extension has a $ sign at the end

Post by tomok »

grusty wrote: Thu Apr 09, 2020 4:20 pm 33716 [26fd] ERROR 2020-04-09 11:06:20.185 TM1.Server sf_Rename: Failed to rename (\\PRIMARY\general\Finance\TM1 Imports\test_quotes.cma$) to (\\PRIMARY\general\Finance\TM1 Imports\test_quotes.cma). Error: error code:5 reason:"Access is denied." file:""\\PRIMARY\general\Finance\TM1 Imports\test_quotes.cma$" : "\\PRIMARY\general\Finance\TM1 Imports\test_quotes.cma" "
You wouldn't happen to have this file open in Excel would you? This error happens whenever you have a CSV open in Excel and then try to write to it via a TI. Copy it to another directory and then open in in Excel. Then run your TI process.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
grusty
Posts: 13
Joined: Thu Oct 11, 2018 10:11 pm
OLAP Product: IBM Planning Analytics
Version: 2.0
Excel Version: 2013 32 bit

Re: ASCIIOUTPUT file extension has a $ sign at the end

Post by grusty »

tomok wrote: Thu Apr 09, 2020 4:45 pm
grusty wrote: Thu Apr 09, 2020 4:20 pm 33716 [26fd] ERROR 2020-04-09 11:06:20.185 TM1.Server sf_Rename: Failed to rename (\\PRIMARY\general\Finance\TM1 Imports\test_quotes.cma$) to (\\PRIMARY\general\Finance\TM1 Imports\test_quotes.cma). Error: error code:5 reason:"Access is denied." file:""\\PRIMARY\general\Finance\TM1 Imports\test_quotes.cma$" : "\\PRIMARY\general\Finance\TM1 Imports\test_quotes.cma" "
You wouldn't happen to have this file open in Excel would you? This error happens whenever you have a CSV open in Excel and then try to write to it via a TI. Copy it to another directory and then open in in Excel. Then run your TI process.
no, I actually created this process as a separate test with a new file. I then deleted the file and re-ran the process and got the same error. I'm thinking it might be an access issue with the TM1 server not having permission to rename files? I didn't think that was a separate permission from windows WRITE access but then again I'm not all that familiar with windows permissions.
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: ASCIIOUTPUT file extension has a $ sign at the end

Post by tomok »

grusty wrote: Thu Apr 09, 2020 4:53 pm no, I actually created this process as a separate test with a new file. I then deleted the file and re-ran the process and got the same error. I'm thinking it might be an access issue with the TM1 server not having permission to rename files? I didn't think that was a separate permission from windows WRITE access but then again I'm not all that familiar with windows permissions.
The account that TM1 runs under is going to need FULL CONTROL to the folder in question.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
grusty
Posts: 13
Joined: Thu Oct 11, 2018 10:11 pm
OLAP Product: IBM Planning Analytics
Version: 2.0
Excel Version: 2013 32 bit

Re: ASCIIOUTPUT file extension has a $ sign at the end

Post by grusty »

tomok wrote: Thu Apr 09, 2020 4:58 pm The account that TM1 runs under is going to need FULL CONTROL to the folder in question.
Ok I'll follow up with our IT and see if that fixes the issue. Thank you for your help I appreciate it!
Post Reply