N8n - JSON to JSONL batch processing (code node is stuck in "executing"

Describe the problem/error/question

Two problems

  1. I am trying to use the code node, and javascript > however as soon as it gets input it goes in “executing node…” and gets stuck there.

  2. I simply want to convert array of json data into jsonl file (I know using code node + create binary file is the right way to do this, but as I mentioned code node isn’t working for me. is there any otherway to do this?)

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

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

Could you provide your workflow json within the code backticks (click the </> button)?

Could you provide your current code in the relevant code nodes?