Aggregate data from loop and merge into single array

Hey there everyone!

Describe the problem/error/question

Welp, with the latest update this node-combination got rendered … uhm … not working.

  • So there’s an input-array from airtable
    - In this case, it’s an b2b order
  • One of the fields of it contains linked records
    - those linked records are the markets the order is for
  • we start a loop over those linked records
    - so we go through every single linked market
  • for the of the linked records we retrieve a field from the linked record
    - for each market there is an abbreviation in airtable, get that
  • after the loop, all retrieved data should be merged into a single array
    - So the array’s called markets and within it a list of all abbreviations

The orginal code broke, and all iterations of it are other solutions with like a SET + MERGE node dont really work …
WHY?
the final array always only included data from the last run of the loop.
Other is ignored.

  • I deleted all iterations and put back in the original code
  • In the last weeks the code sometimes produced errors
  • by now, it only puts out empty arrays

What is the error message (if any)?

Please share your workflow

Share the output returned by the last node

  • Well, it’s empty

[
{
“Märkte”: “”
}
]

Information on your n8n setup

  • n8n version: current version
  • Database (default: SQLite): /
  • n8n EXECUTIONS_PROCESS setting (default: own, main): /
  • **Running n8n via n8n cloud
  • Operating system: macOs

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

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