AnsweredAssumed Answered

loop of geoprocessing tasks, skip the error?

Question asked by lkoumis on Jan 23, 2020
Latest reply on Jan 28, 2020 by lkoumis

I'm running a loop of geoprocessing tasks and save them in an array

 

promisesSeg.push(this.gpSegment_from_PM.execute(params_segment));

 

When all geoprocessing tasks are completed then it continue on...

 

 Promise.all(promisesSeg).then(function (results) {
-------
---------

However, if one set of params lead to a geoprocessing error, it creates an error and terminates further processing.

Is there a way to by-pass the error and continue on with the rest of the sets of params?

 

Hope it makes sense.

Outcomes