1.2k questions

1.4k answers

361 comments

339 users

Categories

Sidebar
0 votes
376 views
by rich-c-2789 (17.6k points)
In a scheduled script I need to get all errors in the error queue then check the source to determine which ones to resolve.

1 Answer

0 votes

To return all errors pass an empty string as the searchText.

var searchText = '';
var results = errorManager.searchErrors(searchText);
qie.debug('searchErrors returned ' + results.size() + ' messageQueueIds.');
qie.debug('The messageQueueIds returned: ' + results);

Also see these related questions:

How to automate resolving errors?  (Contains a more complete axample)

How to return errors older than X or use a custom date range with errorManager.searchErrors()?

How to use errorManager.searchErrors() to return errors that contain the given text?

How restrict the result returned by errorManager.searchErrors()?

How to be notified and prevent automatic error resolution from getting out of hand?

by rich-c-2789 (17.6k points)
...