The output filter (FILTER) object needs to set the return code to either 1 or 2 depending on the keywords found in the report, but always ends with return code 1.
Unhandled error Exception of type 'System.OutOfMemoryException' was thrown.
Unhandled error Object reference not set to an instance of an object.
Unhandled error A call to SSPI failed, see inner exception.
The job needs to fail with return code 1 if the following exception is found:
Unhandled error Exception of type 'System.OutOfMemoryException' was thrown.
The job needs to fail with return code 2 if these two lines are found:
Unhandled error Exception of type 'System.OutOfMemoryException' was thrown.
Unhandled error A call to SSPI failed, see inner exception.
Release : 12.3
Component : AUTOMATION ENGINE
Configuration.
The output filter needs to be created with an AND operation. Once both strings are found, the job will end with the appropriate return code (in this case 2).
2020-11-23 11:45:03 - U00011358 Report 'REP' is scanned for keyword 'Unhandled error Exception of type 'System.OutOfMemoryException' was thrown.'
2020-11-23 11:45:03 - U00011358 Report 'REP' is scanned for keyword 'Unhandled error A call to SSPI failed, see inner exception.'
2020-11-23 11:45:03 - U00011365 Keyword 'Unhandled error A call to SSPI failed, see inner exception.' not found in report 'REP'. Result of filter is FALSE
2020-11-23 11:45:03 - U00011358 Report 'REP' is scanned for keyword 'Unhandled error Exception of type 'System.OutOfMemoryException' was thrown.'
2020-11-23 11:45:03 - U00011367 All keywords in report 'REP' were found. Result of filter is TRUE.
2020-11-23 11:45:03 - U00011361 Return code was changed from '0000000000' to '0000000001' because of the output scan settings.
vs
2020-11-23 11:44:07 - U00011358 Report 'REP' is scanned for keyword 'Unhandled error Exception of type 'System.OutOfMemoryException' was thrown.'
2020-11-23 11:44:07 - U00011358 Report 'REP' is scanned for keyword 'Unhandled error A call to SSPI failed, see inner exception.'
2020-11-23 11:44:07 - U00011367 All keywords in report 'REP' were found. Result of filter is TRUE.
2020-11-23 11:44:07 - U00011361 Return code was changed from '0000000000' to '0000000002' because of the output scan settings.
The filter object looks like: