Hi,
I've had a chore setup up to output a view daily. This view has a single value only and up until last week it worked fine. Now it creates no output file at all. There is data in that view, I can see it in the preview section on the datasource tab. I tried moving the piece of code to the Prolog tab and metadata tab, with no luck. I've tried changing the elements of that view, to isolate whether it was an element problem, but still no output. there has been no change to any system process. what's going on?
Data Tab:
sToday=date(dayno(Today(1))-1,1);
sDate = SUBST( sTODAY, 1,4) | SUBST( sTODAY,6,2) | SUBST(sTODAY, 9,2);
sFilename3='TM1_RollupBalance_'|sDate|'.DAT';
ASCIIOutput(sFilename3, NewAccounts, NumberToString(Value));
Thanks in advance
asciioutput not working
-
- MVP
- Posts: 3702
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: asciioutput not working
The preview window for a view data source is not indicative of data in the view as the preview does not respect the view (it cheats and merely pulls the intersection from element index 1 of each dimension.)
Probably either the view does not contain data or if the values are rule populated they are not fed.
Probably either the view does not contain data or if the values are rule populated they are not fed.
-
- Regular Participant
- Posts: 197
- Joined: Thu Dec 03, 2009 8:47 am
- OLAP Product: IBM Cognos TM1
- Version: 10.2.2.x
- Excel Version: 2010
- Location: Singapore
Re: asciioutput not working
hi! swain69,
try putting this,
ViewExtractSkipZeroesSet (Cube, ViewName, Flag); at your prolog where you create your source view -- where flag is a binary value that turns the option on or off. Specify 1 to exclude zeroes from the extract. Specify 0 to include zeros.
This function sets an option to include/exclude zero values in a view extract. A view extract is a TM1 view exported as an ASCII comma-delimited (.cma) file.
thanks!
bunchukokoy
try putting this,
ViewExtractSkipZeroesSet (Cube, ViewName, Flag); at your prolog where you create your source view -- where flag is a binary value that turns the option on or off. Specify 1 to exclude zeroes from the extract. Specify 0 to include zeros.
This function sets an option to include/exclude zero values in a view extract. A view extract is a TM1 view exported as an ASCII comma-delimited (.cma) file.
thanks!


bunchukokoy
-
- 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 not working
Exactly. You need to actually check the view to see if there is any data, and not thru looking at the preview in TI. Right click on the View in Server Explorer and export it to a text file. If the file is empty it means your view is not returning any data.lotsaram wrote:The preview window for a view data source is not indicative of data in the view as the preview does not respect the view (it cheats and merely pulls the intersection from element index 1 of each dimension.)
Probably either the view does not contain data or if the values are rule populated they are not fed.
-
- Posts: 6
- Joined: Thu Oct 08, 2009 1:27 am
- OLAP Product: TM1
- Version: 9.0
- Excel Version: 2003
Re: asciioutput not working
Hi,
Thanks for your tips, it sent me in the right direction
It turns out the following command was dropped from TI process for some reason, ViewExtractSkipCalcsSet.
I've had another process that after saving it lost some of the code. Fortunately I have backups, but why would this happen?
Thanks for your tips, it sent me in the right direction

I've had another process that after saving it lost some of the code. Fortunately I have backups, but why would this happen?