n8n - ✅(Solved) Fix Duplicate key 'Field_Value' found with different description or type, $fromAI() function [1 pull requests, 3 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
n8n-io/n8n#28900Fetched 2026-04-23 07:44:16
View on GitHub
Comments
3
Participants
3
Timeline
7
Reactions
0
Timeline (top)
commented ×3cross-referenced ×1labeled ×1mentioned ×1

Error Message

error: No error message. Stopping agent working.

Fix Action

Fixed

PR fix notes

PR #28918: fix(editor): avoid duplicate fromAI keys in assignment rows (no-changelog)

Description (problem / solution / changelog)

Summary

  • recognize dot-separated list indices like .assignments.0. when generating auto-created $fromAI() keys
  • add regression coverage for assignment-style paths so repeated "Field Value" rows get unique keys

Test plan

  • corepack pnpm --filter @n8n/vitest-config build
  • corepack pnpm --filter @n8n/permissions build
  • corepack pnpm --filter @n8n/api-types build
  • corepack pnpm exec tsc --build tsconfig.build.esm.json tsconfig.build.cjs.json (in packages/@n8n/expression-runtime)
  • node esbuild.config.js (in packages/@n8n/expression-runtime)
  • corepack pnpm exec vitest run src/features/ndv/parameters/utils/fromAIOverride.utils.test.ts (in packages/frontend/editor-ui)

Fixes n8n-io/n8n#28900

Changed files

  • packages/frontend/editor-ui/src/features/ndv/parameters/utils/fromAIOverride.utils.test.ts (modified, +23/-0)
  • packages/frontend/editor-ui/src/features/ndv/parameters/utils/fromAIOverride.utils.ts (modified, +15/-4)
RAW_BUFFERClick to expand / collapse

Bug Description

error: Duplicate key 'fieldValues8_Field_Value' found with different description or type Ensure all $fromAI() calls with the same key have consistent descriptions and types

<img width="350" height="123" alt="Image" src="https://github.com/user-attachments/assets/22b2658a-87ae-451a-8ceb-6d15187542c1" />

To Reproduce

  1. Ai Tools Agent
  2. Supabase sub node tool
  3. Set fields automatically
<img width="457" height="883" alt="Image" src="https://github.com/user-attachments/assets/a7659e43-e252-4515-90ab-ec4de5103be7" />

The automatic option is setting it like this:

{{ $fromAI('Field_Value', An array of suggested gift items relevant to the event, e.g., ['Smartwatch', 'Cookbook']., 'string') }} {{ $fromAI('Field_Value', General description of the intended audience for this event, e.g., 'Parents', 'Tech Enthusiasts'., 'string') }}

The "Field_Value" is not being set to the name of the field with the automatic option.

Expected behavior

No error message. Stopping agent working.

Debug Info

removing it and then editing my expression as above and setting the field value to a name which doesn't duplicate.

Operating System

Windows 11

n8n Version

2.17.5

Node.js Version

uknown

Database

PostgreSQL

Execution mode

main (default)

Hosting

n8n cloud

extent analysis

TL;DR

The error can be resolved by ensuring that all $fromAI() calls with the same key have consistent descriptions and types, and by setting the "Field_Value" to a unique name that doesn't duplicate.

Guidance

  • Verify that the $fromAI() calls are using the same description and type for the same key, in this case, 'Field_Value'.
  • Check the automatic option setting and ensure that it's not setting the "Field_Value" to a duplicate name.
  • Consider renaming the fields to unique names to avoid duplication, for example, 'Field_Value_Gift_Items' and 'Field_Value_Audience'.
  • Review the Supabase sub node tool configuration to ensure it's not causing the duplication.

Example

// Example of unique $fromAI() calls
{{ $fromAI('Field_Value_Gift_Items', `An array of suggested gift items relevant to the event, e.g., ['Smartwatch', 'Cookbook'].`, 'string') }}
{{ $fromAI('Field_Value_Audience', `General description of the intended audience for this event, e.g., 'Parents', 'Tech Enthusiasts'.`, 'string') }}

Notes

The issue seems to be related to the automatic option setting in the Supabase sub node tool, which is causing the "Field_Value" to be set to a duplicate name. The exact solution may depend on the specific configuration of the tool and the n8n workflow.

Recommendation

Apply workaround: Rename the fields to unique names to avoid duplication, as shown in the example above. This should resolve the error and allow the agent to work as expected.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

No error message. Stopping agent working.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

n8n - ✅(Solved) Fix Duplicate key 'Field_Value' found with different description or type, $fromAI() function [1 pull requests, 3 comments, 3 participants]