HTML Extract ERROR: No item does not contain binary data!

Hi.
I am getting this error:
ERROR: No item does not contain binary data!
on:

It is based on https://n8n.io/workflows/434.
I searched for this error message on: Error Trigger | Docs, but I don’t see any information on this or how to fix it.
What do you recommend?
Thanks,
Josh

The error message actually says exactly what the problem is. The item does not contain any binary data.

So you are telling the “HTML Extract” Node to read the binary property “data” but there is not binary property named “data” on the item. There is actually no binary data on that item at all. As the node needs binary data to do its job, it errors and tells you about that.

I am also quite confused about that workflow in general. Why is the “HTML Extract” Node connected to itself? Why is there no node at all connected to the Set-Node?

I assume you can simply remove the loop and change the binary property name on the “HTML Extract” Node to the actual value which I guess would be “attachment_0”.

Hope that helps!

1 Like

I am trying to extract text from a Gmail message.
GMail is the source of the data.
It is connected to itself because I copied it from the URL I mentioned earlier (https://n8n.io/workflows/434).
Is there a better way to do this?

But the example workflow you are referencing does not have this loop. So do not really understand.

Wrote already above how you should be able to solve that issue. Did you try that?

1 Like

I restructured the workflow, but I get the same error:

The odd thing is that “We received your mobile check deposit” is present in the GMail module, and this phrase is detected in the HTML Extract module:


So, I am not sure (and the hard-to-decipher error message is not helpful determining) what is going wrong or how to fix it.

The workflow does honestly not make any sense to me at all. Can you please explain what you want to do exactly, how the email looks like, from where you try to extract the data (from the text of the email or an attachment, with example-data), and so on. I should then probably be able to create a workflow that does that.

It’s really quite simple. :wink:
I want to use a cron to check for all Gmail messages with a specific label, and then parse them, and send specific information to Google Sheets.

Can you please tell me what you want to parse and from where (the message or the HTML attachment).

The message, please: the subject line and body text, please.

Then you can do the following:

That will extract data from the HTML of the email.

You now have to however find the correct values for all the “CSS Selector” parameters. Depending on the HTML of the email and your experience doing that will it be very simple to almost impossible.

If you control the email you want to scrape the information from (or you can get them to change it) it would be the simplest if they would add id="???" properties like id="amount". Then you could use exactly the workflow from my example above.