Sidebar

How to use errorManager.searchErrors() to return all errors?

0 votes
291 views
asked Jun 9, 2016 by rich-c-2789 (16,240 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?

answered Jun 9, 2016 by rich-c-2789 (16,240 points)
...