Get Binary from other Node in Workflow

I’m building a workflow to get files from a (drop) folder and then move them into another (projects) folder with sub folders for each file.

I’ve got the creation of the sub folders working …

Screenshot 2022-03-15 at 13.12.49

But as soon as I try to get the file from the SplitInBatches into my Write Binary File node, I get the following error:

ERROR: No binary data set. So file can not be written!

I’m using the following expression as property name:

{{$node["SplitInBatches"].binary.data}}

When I connect the Write Binary File node directly to the SplitInBatches node and use ‘data’ (without the ‘’ quotes) as the Property Name, it actually works.

I then read somewhere, that I first need to use the Move Binary Data node first. But when I connect this node to the SplitInBartches node, I get the following error:

ERROR: Unexpected token % in JSON at position 0

Obviously, I must be doing something wrong, but unfortunately, I can not see what … yet …

Hey @dickhoning, are you running the Write Binary File outside of your loop? Could you share your workflow including that node?

@MutedJam of course …