Hey folks, anyone else had an issue with running a...
# suitescript
n
Hey folks, anyone else had an issue with running an M/R script in 2.1? I have a script working perfectly fine in 2.0, but when chaning NApiVersion to 2.1 it runs only the getInputData stage and then says Complete.. no errors no nothing, returns the same result from the search in the getInputData stage as it does when in 2.0, just stops after that.. Never had this issue before and have other M/R scripts working fine in the same environment in 2.1..
u
Try tracing the information through the get input data summary and map summary object on your summarize state. You might be able to figure it out from there. Also are you using global variables?
n
@クリスピポテト smart, will try, nope no global vars
d
I feel 2.1 is still in BETA stage
💯 1
n
Update: Works fine if you return an array like [1, 2, 3] from the getInputData stage, then the reduce stage is triggered.. So there's something 2.1 doesn't like about what my search results return I guess.. but 2.0 doesn't mind.. feels a bit buggy. Will investigate further with summerize when I have some time and update here again.
b
does your map/reduce log the errors in the summarize step?
n
@battk not yet, gonna do it ASAP, will update here with my findings.
b
you probably want to do that in general
💯 1
👍 1