Set only working for 1st Item?

Describe the issue/error/question

Set node only seems to be setting some of the values and skipping the others…

This is obviously a subset of a larger workflow, for simplicity sake.

I’m trying to set a static accountID and locationID, for each of the people listed in the table. For some reason, only the first one get’s the value assigned, the rest are null

I’m sure it’s something dumb, but I can’t figure out what LOL

Webhook brings the data, CreateAccount does a POST, and return with the necessary IDs. We extract the contacts, and assign account ID’s. For some reason, the ID’s are only being assigned to the first contact.

Please share the workflow

Information on your n8n setup

  • n8n version: 0.206.1
  • Database you’re using (default: SQLite): SQLite
  • Running n8n with the execution process [own(default), main]: own
  • Running n8n via [Docker, npm,, desktop app]: docker

I got it to work in a completely different way, though I have no idea why it didn’t work the way it’s posted above.

1 Like

Hi @Tzvi_S, glad to hear you figured it out!

I am not sure I fully understand the original workflow snippet, but having an expression work only for the first item is a rather common problem unfortunately. You might want to check out this older post for an explanation and solution :slight_smile:

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