Airtable attachement field still broken?

Describe the problem/error/question

I am still getting the following error when trying to use a URL to the airtable attachment field. I have built new workflows with new noes and just updated the workflow to the newest N8N cloud version. I get the error attachment field expects an array but instead got… which is the URL.
I have build another test workflow to make sure it was not the nodes in my original workflow but I get the same error still.

What is the error message (if any)?

Invalid input for ‘PFP’ [item 0] (PFP being the Airtable attachment field)

Please share your workflow

Information on your n8n setup

  • n8n version: 1.8.2
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Cloud

So after some long conversations with chatGPT I was able to find a way around not being able to directly use the attachment field due to Airtable wanting an array I was able to get it to work by using the code node.
I have to update Airtable twice because I do not posses the knowledge yet to use the linking and the code node.

3 Likes

Hi @Zac_Magee,
you should be able to simplify the workflow by using an expression like:

{{ [{ "url": $input.item.json.image}] }}

Airtable APIs expect an array of objects with a url key.
Please find a full example here:

All the best

1 Like

Hey @giulioandreini

Thank you so much! This will make my life so much easier!

2 Likes

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