Attempting to set global variable '_impl' (within JSMapReduceJob.map)

I was attempting to run a MapReduce batch and i got this error:

errorMsg: Attempting to set global variable ‘_impl’ (within JSMapReduceJob.map). from DateTime_server.js, line 41 39 break; 40 case “string”: > 41 this._impl = DateTime._DateTime.deserialize(fstArg); 42 break; 43 default: from JSMapReduceJob_map.js, line 49 47 48 function map(batch, objs, job, subBatch) { > 49 return lambda(job.mapLambda, “map”)(batch, objs, job, subBatch); 50 } 51 from JSMapReduceJob_map.js, line 65 63 } 64 if (typeof $JSMapReduceJob$functions.map == ‘function’) { > 65 function map() { return $JSMapReduceJob$functions.map.appl… 66 } 67 from JSMapReduceJob_map.js, line 71 69 if (typeof map != ‘function’) throw new Error('Function "map… 70 global$.call$JSMapReduceJob$map = function(batch, objs, job,… > 71 return map.call(JSMapReduceJob, batch, objs, job, subBatch); 72 }; 73 })(this); base action JSMapReduceJob.map

Do you have any idea about the issue origin? i don’t have any ‘_impl’ variable in my algorithm…

Thank you

Make sure you’re calling the DateTime constructor correctly:

var good = new DateTime();
var bad = DateTime();