Any ideas how I can see an actual error? The map/r...
# suitescript
c
Any ideas how I can see an actual error? The map/reduce is set to submit all stages at once.
b
c
Those code snippets don't work as they are written
Copy code
summary.mapSummary.errors.iterator().each(function (key, error, executionNo){
    log.error({
        title: 'Map error for key: ' + key + ', execution no.  ' + executionNo,
        details: error
    });
    return true;
});
You can't just drop that in the summarise stage as the template is produced from SDF
b
did you need help guessing variable names?
c
I ended up using the one in the map() example but go nothing logged
b
use the one from the Summarize Stage
c
Copy code
summary.mapSummary
What should that be?
is summary the summaryContext?
b
yes
c
I wasn't aware that held a mapSummary
I guess it does
b
c
and that gave me the error
tanks
the real issue is that I'm using dynamic mode to save an SO
I don't really want to care about the order of field entry
b
the summary is the best place for errors
not all errors that suitescript throws can be caught
the map stage code that you were trying to use is generally used with retryCount
👍 1