Weird stuff. Can you show what the JSON view shows? The Schema is nice, but is not the raw data.
Question though, you have an example of it working with the raw json mode, but you also say that you tried that and it didn’t work. I am a bit confused about that.
Question though, you have an example of it working with the raw json mode, but you also say that you tried that and it didn’t work. I am a bit confused about that.
Yeah, that’s what makes it more weird. For this node specifically (Edit Fields, same as the working example), I got the same bug either using raw or manual mode.
But the attached picture pretty much sums it up. Is there anything I’m missing here on this behaviour?
Please pay attention there - the worst part of it (that’s because I waste several hours debugging it) - if you check execution history or recreate a stage in another process or just pin data and execute it - you’ll not see any errors. So it happens only while executing not in editor. Look at the messageDate1 and messageDate2 fields on the screen and corresponding outputs (no errors on the left side and errors on the right).
There is a bug that makes the value a sort of datatime type instead of string which is normal JSON.
This results in it working properly in edit mode and not active/production mode(or the other way around not sure)
Adding a code node that just returns all forces the type to be a string which is proper JSON, after that you can use it as normal and both edit and active mode will be the same.
I’m personally prefer standard nodes and stay away from the Code node as long as you can because it is more transparent and easier to understand the logic.
Usually, when I get an error on the first run, I just disable that node and retry, and the other ones usually run fine (absolutely the same structure for the Set nodes).