Is it possible, that it has no filename in that object?
you can check by looking at the output/preview when you have only $binary[‘your filename’] without the “.filename”)
maybe you need to assign a filename to the binary in an earlier step.
Or if the filename is a property of the item.json, you add it from there.
The only problem is that the other json is lost (meaning only the binary is being outputted). So I think I have to use a Merge node? But then again the “duplicate incomplete json” would result