Hi guys am I only one who encountered issue in MAP...
# suitescript
d
Hi guys am I only one who encountered issue in MAP/REDUCE script when executing it on 2.1 version. The scenario is, I manually executed the map/reduce then in map stage it returns an error saying "An unexpected SuiteScript error has occurred" but the script doesn't perform any process except logging for testing purposes only. Anyone encounter this error?
b
what does your code look like
d
function map(context) {
log.debug({ title : 'START', details : '===START===' });
log.debug({ title : 'END', details : '===END===' });
}
assuming that there's a getInputData function
b
the getInputData is probably more important
d
function getInputDta (context) {
return search.load({ id : 'saved_search_id' });
}
b
still broken, 2.1 can't run searches for you
do the search yourself, or use 2.0
d
what do u mean by still broken in 2.1? Did I miss something to read in 2.1 api version?
d
thanks thanks
b
it working better than before if it throws the
An unexpected SuiteScript error has occurred
. It didnt have the decency to throw errors before
a
We worked with @Nikola Gavric and have a fix for this - it should be out in the latest patch.
😍 2
❤️ 1