Error Message 5188 in TI process
Posted: Sun Nov 01, 2009 11:10 am
I have the following error :
5188 ERROR 2009-11-01 10:59:33,417 TM1.Process Process "Export Forecast or Budget to HFM in csv for multi-load": System stack overflow, process terminated
There is not much details on why this process abort
The scope of the process is to export data for all month for which number is greater or equal to selection value
But the text file exported is always the same with same number of lines and columns
Only the values are 'zero' for period less than the period selected
the process always work fine when period is greater than period 3 and abort each time when lower or equal to period 3
When slicing from a cube in Excel never get a problem .
Anyone have such type of error message ?
The process code in the Advanced Data is the following:
Counter=Counter+1;
If(Counter=1);
###############
# set up the header
###############
# 1. origin of data
ASCIIOUTPUT('\\POCTSE02\tm1\4. Output\' |pScenario| ' ' |pYear| ' ' | pPeriod | ' ' | pPeriodStatus | ' Created on ' | DATE(Now,1) | ' Factor
by ' | NUMBERTOSTRING(pScaleFactor) | ' .cma','TM1');
# 2. scenario
ASCIIOUTPUT('\\POCTSE02\tm1\4. Output\' |pScenario| ' ' |pYear| ' ' | pPeriod | ' ' | pPeriodStatus | ' Created on ' | DATE(Now,1) | ' Factor
by ' | NUMBERTOSTRING(pScaleFactor) | ' .cma',ATTRS('Scenario',pscenario,'HFM')
);
# 3. date
ASCIIOUTPUT('\\POCTSE02\tm1\4. Output\' |pScenario| ' ' |pYear| ' ' | pPeriod | ' ' | pPeriodStatus | ' Created on ' | DATE(Now,1) | ' Factor by
' | NUMBERTOSTRING(pScaleFactor) | ' .cma', SUBST(pPeriod,2,2) | '/' | NUMBERTOS
TRING(CELLGETN('Param_FIN','Calendar Days',pPeriod,pScenario,pYear)) | '/' | pYear);
# 4. Number of month sent
# if(PSCENARIO@='ACT');
if(PSCENARIO@=' ');
ASCIIOUTPUT('\\POCTSE02\tm1\4. Output\' |pScenario| ' ' |pYear| ' ' | pPeriod | ' ' | pPeriodStatus | ' Created on ' | DATE(Now,1) | ' Factor
by ' | NUMBERTOSTRING(pScaleFactor) | ' .cma','1');
ELSE;
ASCIIOUTPUT('\\POCTSE02\tm1\4. Output\' |pScenario| ' ' |pYear| ' ' | pPeriod | ' ' | pPeriodStatus | ' Created on ' | DATE(Now,1) | ' Factor by
' | NUMBERTOSTRING(pScaleFactor) | ' .cma',NUMBERTOSTRING(13-STRINGTONUMBER(SUBS
T(pPeriod,2,2))));
ENDIF;
# 5. Hyperion upload information
if(pperiodstatus@='Monthly');
ASCIIOUTPUT('\\POCTSE02\tm1\4. Output\' |pScenario| ' ' |pYear| ' ' | pPeriod | ' ' | pPeriodStatus | ' Created on ' | DATE(Now,1) | ' Factor
by ' | NUMBERTOSTRING(pScaleFactor) | ' .cma','R,R,0,,,,Y,N,,PER');
else;
ASCIIOUTPUT('\\POCTSE02\tm1\4. Output\' |pScenario| ' ' |pYear| ' ' | pPeriod | ' ' | pPeriodStatus | ' Created on ' | DATE(Now,1) | ' Factor
by ' | NUMBERTOSTRING(pScaleFactor) | ' .cma','R,R,0,,,,Y,N,,YTD');
endif;
# 6. Hyperion upload information
ASCIIOUTPUT('\\POCTSE02\tm1\4. Output\' |pScenario| ' ' |pYear| ' ' | pPeriod | ' ' | pPeriodStatus | ' Created on ' | DATE(Now,1) | ' Factor
by ' | NUMBERTOSTRING(pScaleFactor) | ' .cma',';A;UD2;UD4;;;;;;C;UD1;V;V;V;V;V;
V;V;V;V;V;V;V');
# 7. blank
ASCIIOUTPUT('\\POCTSE02\tm1\4. Output\' |pScenario| ' ' |pYear| ' ' | pPeriod | ' ' | pPeriodStatus | ' Created on ' | DATE(Now,1) | ' Factor
by ' | NUMBERTOSTRING(pScaleFactor) | ' .cma','');
# 8. header
vLine=pQuote | 'cube;account;account;account;cur;view;iter;year;scen;unit;unit';
# if(PSCENARIO@='ACT');
if(PSCENARIO@=' ');
vLine=vLine | ';' | pPeriod;
ELSE;
# first we do the Mxx parts
i=STRINGTONUMBER(SUBST(pPeriod,2,2));
WHILE(i<=12);
IF(i<10);
vLine=vLine | ';M0' | NUMBERTOSTRING(i);
ELSE;
vLine=vLine | ';M' | NUMBERTOSTRING(i);
ENDIF;
i=i+1;
END;
ENDIF;
# output to text file
ASCIIOUTPUT('\\POCTSE02\tm1\4. Output\' |pScenario| ' ' |pYear| ' ' | pPeriod | ' ' | pPeriodStatus | ' Created on ' | DATE(Now,1) | ' Factor
by ' | NUMBERTOSTRING(pScaleFactor) | ' .cma',vLine);
Endif;
vLine='polyone:PolyOne Reporting;' | Accounts | ';' | Accounts | ';' | Accounts | ';' | CurrencyReporting | ';' | PeriodStatus | ';' | Iteration | ';'
| pYear | ';' | pScenario | ';' | Units | ';' | Units;
# if(PSCENARIO@='ACT');
if(PSCENARIO@=' ');
vLine=vLine | ';' | NUMBERTOSTRING(pScaleFactor*CELLGETN('PolyOne Reporting',Iteration,PeriodStatus,CurrencyReporting,pScenario,VYear,pPeriod,Units,Ac
counts));
ELSE;
i=STRINGTONUMBER(SUBST(pPeriod,2,2));
WHILE(i<=12);
IF(i<10);
vMonth='M0' | NUMBERTOSTRING(i);
ELSE;
vMonth='M' | NUMBERTOSTRING(i);
ENDIF;
vLine=vLine | ';' | NUMBERTOSTRING(pScaleFactor*CELLGETN('PolyOne Reporting',Iteration,PeriodStatus,CurrencyReporting,pScenario,VYear,vMonth,U
nits,Accounts));
i=i+1;
END;
ENDIF;
ASCIIOUTPUT('\\POCTSE02\tm1\4. Output\' |pScenario| ' ' |pYear| ' ' | pPeriod | ' ' | pPeriodStatus | ' Created on ' | DATE(Now,1) | ' Factor by
' | NUMBERTOSTRING(pScaleFactor) | ' .cma' ,vLine);
#Asciioutput('\\POCTSE02\tm1\4. Output\' |pScenario| ' ' |pYear| ' ' | pPeriod | ' ' |
#pPeriodStatus | '.cma','polyone:PolyOne Reporting',Iteration
#,PeriodStatus,CurrencyReporting,Scenario,VYear,Period,Units
#,Accounts,Numbertostring(Value));
#endif;
5188 ERROR 2009-11-01 10:59:33,417 TM1.Process Process "Export Forecast or Budget to HFM in csv for multi-load": System stack overflow, process terminated
There is not much details on why this process abort
The scope of the process is to export data for all month for which number is greater or equal to selection value
But the text file exported is always the same with same number of lines and columns
Only the values are 'zero' for period less than the period selected
the process always work fine when period is greater than period 3 and abort each time when lower or equal to period 3
When slicing from a cube in Excel never get a problem .
Anyone have such type of error message ?
The process code in the Advanced Data is the following:
Counter=Counter+1;
If(Counter=1);
###############
# set up the header
###############
# 1. origin of data
ASCIIOUTPUT('\\POCTSE02\tm1\4. Output\' |pScenario| ' ' |pYear| ' ' | pPeriod | ' ' | pPeriodStatus | ' Created on ' | DATE(Now,1) | ' Factor
by ' | NUMBERTOSTRING(pScaleFactor) | ' .cma','TM1');
# 2. scenario
ASCIIOUTPUT('\\POCTSE02\tm1\4. Output\' |pScenario| ' ' |pYear| ' ' | pPeriod | ' ' | pPeriodStatus | ' Created on ' | DATE(Now,1) | ' Factor
by ' | NUMBERTOSTRING(pScaleFactor) | ' .cma',ATTRS('Scenario',pscenario,'HFM')
);
# 3. date
ASCIIOUTPUT('\\POCTSE02\tm1\4. Output\' |pScenario| ' ' |pYear| ' ' | pPeriod | ' ' | pPeriodStatus | ' Created on ' | DATE(Now,1) | ' Factor by
' | NUMBERTOSTRING(pScaleFactor) | ' .cma', SUBST(pPeriod,2,2) | '/' | NUMBERTOS
TRING(CELLGETN('Param_FIN','Calendar Days',pPeriod,pScenario,pYear)) | '/' | pYear);
# 4. Number of month sent
# if(PSCENARIO@='ACT');
if(PSCENARIO@=' ');
ASCIIOUTPUT('\\POCTSE02\tm1\4. Output\' |pScenario| ' ' |pYear| ' ' | pPeriod | ' ' | pPeriodStatus | ' Created on ' | DATE(Now,1) | ' Factor
by ' | NUMBERTOSTRING(pScaleFactor) | ' .cma','1');
ELSE;
ASCIIOUTPUT('\\POCTSE02\tm1\4. Output\' |pScenario| ' ' |pYear| ' ' | pPeriod | ' ' | pPeriodStatus | ' Created on ' | DATE(Now,1) | ' Factor by
' | NUMBERTOSTRING(pScaleFactor) | ' .cma',NUMBERTOSTRING(13-STRINGTONUMBER(SUBS
T(pPeriod,2,2))));
ENDIF;
# 5. Hyperion upload information
if(pperiodstatus@='Monthly');
ASCIIOUTPUT('\\POCTSE02\tm1\4. Output\' |pScenario| ' ' |pYear| ' ' | pPeriod | ' ' | pPeriodStatus | ' Created on ' | DATE(Now,1) | ' Factor
by ' | NUMBERTOSTRING(pScaleFactor) | ' .cma','R,R,0,,,,Y,N,,PER');
else;
ASCIIOUTPUT('\\POCTSE02\tm1\4. Output\' |pScenario| ' ' |pYear| ' ' | pPeriod | ' ' | pPeriodStatus | ' Created on ' | DATE(Now,1) | ' Factor
by ' | NUMBERTOSTRING(pScaleFactor) | ' .cma','R,R,0,,,,Y,N,,YTD');
endif;
# 6. Hyperion upload information
ASCIIOUTPUT('\\POCTSE02\tm1\4. Output\' |pScenario| ' ' |pYear| ' ' | pPeriod | ' ' | pPeriodStatus | ' Created on ' | DATE(Now,1) | ' Factor
by ' | NUMBERTOSTRING(pScaleFactor) | ' .cma',';A;UD2;UD4;;;;;;C;UD1;V;V;V;V;V;
V;V;V;V;V;V;V');
# 7. blank
ASCIIOUTPUT('\\POCTSE02\tm1\4. Output\' |pScenario| ' ' |pYear| ' ' | pPeriod | ' ' | pPeriodStatus | ' Created on ' | DATE(Now,1) | ' Factor
by ' | NUMBERTOSTRING(pScaleFactor) | ' .cma','');
# 8. header
vLine=pQuote | 'cube;account;account;account;cur;view;iter;year;scen;unit;unit';
# if(PSCENARIO@='ACT');
if(PSCENARIO@=' ');
vLine=vLine | ';' | pPeriod;
ELSE;
# first we do the Mxx parts
i=STRINGTONUMBER(SUBST(pPeriod,2,2));
WHILE(i<=12);
IF(i<10);
vLine=vLine | ';M0' | NUMBERTOSTRING(i);
ELSE;
vLine=vLine | ';M' | NUMBERTOSTRING(i);
ENDIF;
i=i+1;
END;
ENDIF;
# output to text file
ASCIIOUTPUT('\\POCTSE02\tm1\4. Output\' |pScenario| ' ' |pYear| ' ' | pPeriod | ' ' | pPeriodStatus | ' Created on ' | DATE(Now,1) | ' Factor
by ' | NUMBERTOSTRING(pScaleFactor) | ' .cma',vLine);
Endif;
vLine='polyone:PolyOne Reporting;' | Accounts | ';' | Accounts | ';' | Accounts | ';' | CurrencyReporting | ';' | PeriodStatus | ';' | Iteration | ';'
| pYear | ';' | pScenario | ';' | Units | ';' | Units;
# if(PSCENARIO@='ACT');
if(PSCENARIO@=' ');
vLine=vLine | ';' | NUMBERTOSTRING(pScaleFactor*CELLGETN('PolyOne Reporting',Iteration,PeriodStatus,CurrencyReporting,pScenario,VYear,pPeriod,Units,Ac
counts));
ELSE;
i=STRINGTONUMBER(SUBST(pPeriod,2,2));
WHILE(i<=12);
IF(i<10);
vMonth='M0' | NUMBERTOSTRING(i);
ELSE;
vMonth='M' | NUMBERTOSTRING(i);
ENDIF;
vLine=vLine | ';' | NUMBERTOSTRING(pScaleFactor*CELLGETN('PolyOne Reporting',Iteration,PeriodStatus,CurrencyReporting,pScenario,VYear,vMonth,U
nits,Accounts));
i=i+1;
END;
ENDIF;
ASCIIOUTPUT('\\POCTSE02\tm1\4. Output\' |pScenario| ' ' |pYear| ' ' | pPeriod | ' ' | pPeriodStatus | ' Created on ' | DATE(Now,1) | ' Factor by
' | NUMBERTOSTRING(pScaleFactor) | ' .cma' ,vLine);
#Asciioutput('\\POCTSE02\tm1\4. Output\' |pScenario| ' ' |pYear| ' ' | pPeriod | ' ' |
#pPeriodStatus | '.cma','polyone:PolyOne Reporting',Iteration
#,PeriodStatus,CurrencyReporting,Scenario,VYear,Period,Units
#,Accounts,Numbertostring(Value));
#endif;