Page 1 of 1

ProcessExitMinorError

Posted: Fri Dec 10, 2021 12:32 am
by wilsonric
This function seems to be triggered even if there is no error log or error message in the Message Log.
I really just want to know if an error log has been generated for my process.
Am I using the wrong function to determine this?

Re: ProcessExitMinorError

Posted: Fri Dec 10, 2021 12:53 am
by burnstripe
vResult = ExecuteProcess('xxx');
If(vResult = ProcessExitMinorError() );
# Do action
EndIf;

If the process generating the minor error is called by a master process, then having something like the above in the master process when calling the child process would return the execution success of the child process

If you want to know if any error had generated not just minor ones then use

vResult = ExecuteProcess('xxx');
If(vResult <> ProcessExitNormal()) ;
# Do action
EndIf;