Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit Fields action has improper JSON validation when the output is an array #12533

Open
tszalaj opened this issue Jan 9, 2025 · 1 comment
Open
Labels
in linear Issue or PR has been created in Linear for internal review

Comments

@tszalaj
Copy link

tszalaj commented Jan 9, 2025

Bug Description

When the Edit Fields action returns an array, there is an invalid error message in runtime:
The 'JSON Output' in item 0 does not contain a valid JSON object
even that the array is valid and in design time is properly visualized.

To Reproduce

  1. Connect the trigger to an Edit Fields action in JSON mode with value: {{ [ { "prop": 111}, { "prop": 222 } ] }}
  2. Start the workflow

Expected behavior

The Edit Fields action should return two objects.

Operating System

Ubuntu Linux

n8n Version

docker.n8n.io/n8nio/n8n:latest (1.72.1)

Node.js Version

?

Database

SQLite (default)

Execution mode

main (default)

@Joffcom
Copy link
Member

Joffcom commented Jan 9, 2025

Hey @tszalaj,

We have created an internal ticket to look into this which we will be tracking as "N8N-8070"

@Joffcom Joffcom added the in linear Issue or PR has been created in Linear for internal review label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in linear Issue or PR has been created in Linear for internal review
Projects
None yet
Development

No branches or pull requests

2 participants