Decompress node

Hi Community,
I’m trying to decompress a file from a trigger in Gmail using the decompress node. I am also trying to get Invoices from Gmail to Drive and Google Sheets, but some invoices came in zip or compressed files. How can I configure this right?

The error I get is this: The item has no binary field ‘data’ [item 0]

Thanks for any suggestions

Daniel

Change the input binary field to “attachment_0”.

You wrote “data” instead.

:point_right: If my reply answers your question, please remember to mark it as the solution.

2 Likes

Thank you @solomon I appreciate it, once it is decompressed I get this message related to the binary field:

The binary field is always this name in orange:

On the previous node you changed the field name to file_
That’s why it’s not attachment_ anymore.

1 Like

WOW @solomon thank you so much for your help and for letting me realize my mistake! It is working now.

1 Like

I’m glad it worked :muscle: I hope now you understand how it works!

1 Like

Hello @solomon, I have a question.

I’m encountering an issue with the workflow. It works correctly when the email contains a compressed file, but when the email includes a PDF, I receive an error. I assume this happens because the system expects a file to decompress and, when it doesn’t find one, it generates an error.

However, I need the workflow to process PDFs as well, just as it does with compressed files. The workflow helps me identify invoices (some are compressed, while others are in PDF format) and transfer them from Gmail to Drive and Google Sheets.

How can I resolve this issue? Thank you in advance for your support!

That’s easy! Create a condition with an IF node or a SWITCH node that sends each file to its path.

You can use MIME type for the condition.

If you have further questions about this, please create another topic, as this one is solved.

You can tag me there using @solomon and I’ll gladly help you out :muscle:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.