Trapping error message after running an *.exe in Powershell

rated by 0 users
This post has 0 Replies | 1 Follower

Not Ranked
Posts 4
rickarora Posted: 01-18-2012 3:43 PM

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.

Page 1 of 1 (1 items) | RSS
Copyright 2012 PowerShell.com. All rights reserved.