Quantcast
Channel: PowerShell General
Viewing all articles
Browse latest Browse all 10624

Trapping error message after running an *.exe in Powershell

$
0
0

Hi

I am struggling with a exe job  failing when using powershell.  I want to trap these errors in a variable specially the last error statement

"Error | _checkForPriorErrorState | PROCESSING CANCELLED - "Last Error" info not cleared. | org.ncore.Exceptions.RuntimeException: PROCESSING CANCELLED - "Last Error" info not cleared."

. How do I go about doing that ??

Thanks

R

Here are the variables that display on the screen :

Environment | Validating command line arguments

Partners.Me.Automation

Job ID:  251479

Environment | ProcessDirectoryPath | E:\CMTM\deploy\partner\Partners.Me.Automation

Environment | CurrentInstanceName  | 2012-01-18.21-38-24-UTC

Initializing... log directory path

Environment | AlternateLoggingDirectoryPath  | E:\CMTM\deploy_logs\Partners.Me.Automation\2012-01-18.21-38-24-UTC

Initializing... log file path

Environment | AlternateLoggingFilePath   | E:\CMTM\deploy_logs\Partners.Me.Automation\2012-01-18.21-38-24-UTC\Partners.Me.Automation_ExecutionProgress.log

Environment | TransientCacheEnabled | False

Environment | EmailFrom | aa@xa.com

Environment | Default summary email recipients | ra@ixa.com, 

Environment | Validation | Validating single application instance

Progress | Execute Derived Implementation | STARTED

Progress | Checking for prior error state...

Error | _checkForPriorErrorState | PROCESSING CANCELLED - "Last Error" info not cleared. | org.ncore.Exceptions.RuntimeException: PROCESSING CANCELLED - "Last Error" info not cleared.


Viewing all articles
Browse latest Browse all 10624

Trending Articles