TM1.Process myprocess: Could not initialize process"???
Posted: Wed Mar 24, 2010 11:57 pm
Hi Guys,
when i chore this process which points to an ODBC connection, the process will not execute. I get the following error:
"TM1.Process Process "switch - chore daily load": Could not initialize process"
Is this because the process that i am trying to execute is ODBC? When i run a simple TI process which does not involve ODBC the process runs fine.
Is there a way around this or a better way of picking up errors. Esentially i would like the process to spit out a text file which indicates whether it
was executed sucessfully ( need it for sox purposes)
##################################
ReturnValue=ExecuteProcess('switch4_switch data obbc');
if(ReturnValue=ProcessExitNormal());
AsciiOutput('E:\TM1_Production\Logging_Sox\switch4_switch data obbc_successfull_'|TODAY|'_'|TIMST(now(),'\hhrs\imin\ssec')|'.txt','switch4_switch
data obbc Process has been updated sucessfully - Process_'|TODAY|'_'|TIME);
Elseif (ReturnValue=ProcessExitMinorError());
AsciiOutput('E:\TM1_Production\Logging_Sox\switch4_switch data obbc_minorError_'|TODAY|'_'|TIMST(now(),'\hhrs\imin\ssec')|'.txt','switch4_switch
data obbc Process has been updated but with minor errors - switch4_switch data obbc Process_'|TODAY|'_'|TIME);
Elseif (ReturnValue=ProcessExitSeriousError());
AsciiOutput('E:\TM1_Production\Logging_Sox\switch4_switch data obbc_majorError_'|TODAY|'_'|TIMST(now(),'\hhrs\imin\ssec')|'.txt','switch4_switch
data obbc Process has been updated but with major errors - switch4_switch data obbc Process_'|TODAY|'_'|TIME);
Elseif (ReturnValue=ProcessExitOnInit());
AsciiOutput('E:\TM1_Production\Logging_Sox\switch4_switch data obbc_ExitOnInitError_'|TODAY|'_'|TIMST(now(),'\hhrs\imin\ssec')|'.txt','switch4_sw
itch
data obbc Process has been aborted due to ExitOnInit - switch4_switch data obbc Process_'|TODAY|'_'|TIME);
Endif;
########################################
Cheers
Shock
when i chore this process which points to an ODBC connection, the process will not execute. I get the following error:
"TM1.Process Process "switch - chore daily load": Could not initialize process"
Is this because the process that i am trying to execute is ODBC? When i run a simple TI process which does not involve ODBC the process runs fine.
Is there a way around this or a better way of picking up errors. Esentially i would like the process to spit out a text file which indicates whether it
was executed sucessfully ( need it for sox purposes)
##################################
ReturnValue=ExecuteProcess('switch4_switch data obbc');
if(ReturnValue=ProcessExitNormal());
AsciiOutput('E:\TM1_Production\Logging_Sox\switch4_switch data obbc_successfull_'|TODAY|'_'|TIMST(now(),'\hhrs\imin\ssec')|'.txt','switch4_switch
data obbc Process has been updated sucessfully - Process_'|TODAY|'_'|TIME);
Elseif (ReturnValue=ProcessExitMinorError());
AsciiOutput('E:\TM1_Production\Logging_Sox\switch4_switch data obbc_minorError_'|TODAY|'_'|TIMST(now(),'\hhrs\imin\ssec')|'.txt','switch4_switch
data obbc Process has been updated but with minor errors - switch4_switch data obbc Process_'|TODAY|'_'|TIME);
Elseif (ReturnValue=ProcessExitSeriousError());
AsciiOutput('E:\TM1_Production\Logging_Sox\switch4_switch data obbc_majorError_'|TODAY|'_'|TIMST(now(),'\hhrs\imin\ssec')|'.txt','switch4_switch
data obbc Process has been updated but with major errors - switch4_switch data obbc Process_'|TODAY|'_'|TIME);
Elseif (ReturnValue=ProcessExitOnInit());
AsciiOutput('E:\TM1_Production\Logging_Sox\switch4_switch data obbc_ExitOnInitError_'|TODAY|'_'|TIMST(now(),'\hhrs\imin\ssec')|'.txt','switch4_sw
itch
data obbc Process has been aborted due to ExitOnInit - switch4_switch data obbc Process_'|TODAY|'_'|TIME);
Endif;
########################################
Cheers
Shock