Server Error: SPIN/JACKSON-JSON-01005 Unable to create node for object of type 'Undefined’

Hi @steftriant

The documentation for Multi-Instance tasks says the following:

A multi-instance activity ends when all instances are finished.

That means, that all the subprocesses are executed before the process gets to your last task. And the problem you are having is, that every subprocess of your multi-instance writes the output to the same result variable. So this variable gets constantly overwritten and only contains the result of the last iteration.

So you should consider creating an object that holds all the results of the subprocesses.

Here is a good forum post that helped me to improve the usage of my multi-instance tasks:

I suggest you implement it similar to this example and collect the results of your multi-instance-tasks after avery instance on your own.

Regards
Michael

4 Likes