what’s possibly wrong here? my map reduce script t...
# suitescript
s
what’s possibly wrong here? my map reduce script throws failed on the getinputdata stage and it doesnt log anything
b
n
double check that your script file ends in .js If that is missing the script will fail with no errors
👍 1
s
operator: search.Operator.ANYOF try using this
Also try removing the last , after 12342778
s
Thanks @Sitaram upadhya! That did it. Not sure which of the two but it’s now running and completed.
hmmm,. this one’s weird. It worked when I removed the columns statusref and amount and left internalid. when I placed them back, it says failed again.
b
log the error correctly so you can see the error
s
is there something wrong with my catch error? the same code block had worked for me before… not really sure why now it isnt
your error occurs when the search is run, not when it is created
👍 1
s
yeah, the amountremainng field is causing the error…
e
log.error is logging
err
not
error
which is caught in the catch parameters!
s
i changed that to error and still the same… so I have put only internal ID to the columns and had the rest of the columns in the map stage since I was loading the record anyway
e
try running the search outside of the MR script. for example in the console you can hit F12, require (instead of define) and simply execute the search to test it out