Binary data issue

I created a workflow to post content on LinkedIn

I merged image and content both created using AI agent and when posting it’s showing the error that I uploaded below.

Please share your workflow


Share the output returned by the last node

Information on your n8n setup

  • Version 1.109.2-exp.0
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main): own
  • Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
  • Operating system: Mac Linux

Hey, can you try

{{ $input.item.binary.keys()[0] }}

Hey @Praneeth_Vallabha welcome to n8n Community.

Is merge node giving binary output?

No it’s not

Hi, sorry not an expert but where should I use this code?

Hello @Praneeth_Vallabha,

The main issue is that you’re not using the merge node correctly:


The first problem is that you have two branches coming in together, and that will cause issues.
The second problem is that you’re using the Append mode, which will give you three outputs, and I don’t think that’s what you want.

Solution: Use the merge node with the combine mode shown here:

Connect the three inputs into it..

This will give you a single output item that contains the image and the other outputs, which you can then use later in the LinkedIn node.

3 Likes

That worked @mohamed3nan thank you. Need a small clarification, I get the posted successfully posted in LinkedIn but I got the following error in n8n can you please tell what I did wrong

Can you screenshot the merge node? It should output 1 item, not 2

Yes, this is expected, as I explained earlier in the post
Just set it up like this:

1 Like

Thanks again @mohamed3nan your suggestion worked like a charm. :folded_hands:

1 Like