In a Map/Reduce script, within the REDUCE stage, I...
# suitescript
e
In a Map/Reduce script, within the REDUCE stage, I am attempting to trigger yet another M/R script via
task.create
. This works fine. However, the
params
(script parameters passed to the other M/R script) do not flow properly. In another context, literally the identical call works. It seems like in User Events or Scheduled or Suitelet contexts this call works, params and all, but not the below from within a M/R script. Anybody ever experience this before?
Copy code
var mrTask = task.create({
				taskType: task.TaskType.MAP_REDUCE,
				scriptId: 'customscript_xyz',
				params: {
					custscript_xyz: 'string here'
				}
			});
			mrTask.submit();
Seems like my issue with
task.create
may be a character length (or other?) issue. Are there any limits to the length of a string i may pass to a script parameter (which type =
Long Text
).
k
Struggling to understand why you would trigger another MR in a reduce stage.
I only ever do that in summarise.
e
it’s involved, but generally i agree with you. either way, seems like something else at play here though i don’t know what. i modified this to a UE script to test and it still fails….