I am executing my job via PowerShell script however the kitchen exit return code doesn't seem to work... Based on documentation that I read below is the return codes for kitchen
0 = The job/transformation ran without a problem.
1 = An error occurred during processing.
2 = An unexpected error occurred during loading/running of the job/transformation. Basically, it can be an error in the XML format, an error in reading the file, or it can denote that there are problems with the repository connection.
3 = Unable to connect to a database, open a file, or other initialization errors.
7 = The job/transformation couldn't be loaded from XML or the repository; basically, it could be that one of the plugins in the plugins/ folder is not written correctly or is incompatible.
8 = An error occurred while loading steps or plugins (an error in loading one of the plugins mostly).
9 = Command line usage printing.
$FilePath = 'C:\pdi-ce-8.1.0.0-371\data-integration\kitchen.bat' $ArgumentList = '-file=C:\pdi_debug\debug.kjb -level=MINIMAL >> C:\pdi_debug\bat.log' $PDIProcess = Start-Process -Filepath $FilePath -ArgumentList $ArgumentList -Wait -PassThru Write-host "The Exit code from Kitchen is " $LastExitCode If($LastExitCode -eq 0) #This doesn't seem to correctly get the exit code we are wanting :-/ { $EMAIL_SUBJECT='INT: Pentaho_J_load SUCCEEDED' } Else { $EMAIL_SUBJECT='INT: Pentaho_J_load FAILED'