Data mapping error

[
{
“Image url 1”: “https://cdn.leonardo.ai/users/9764fe4a-3e44-4138-8322-93ea56448ab1/generations/98980369-asd-b608-fde178a254e2/Leonardo_Lightning_XL_In_the_distant_future_humans_have_succes_0.jpg
},
{
“Image url 2”: “https://cdn.leonardo.ai/users/9764fe4a-3e44-4138-8322-93ea56448ab1/generations/cbb89d31as91fa1d5e0a3f/Leonardo_Lightning_XL_However_the_miners_began_to_disappear_on_0.jpg
},
{
“Image url 3”: “https://cdn.leonardo.ai/users/9764fe4a-3e44-4138-8322-93ea56448ab1/generations/basdfd4-9f59-386226ed4b30/Leonardo_Lightning_XL_Adventurer_Jick_decided_to_delve_into_t_0.jpg
},
{
“Image url 4”: “https://cdn.leonardo.ai/users/9764fe4a-3e44-4138-8322-93ea56448ab1/generations/ba20asb1cf-136df17b3de4/Leonardo_Lightning_XL_Suddenly_Jick_was_engulfed_by_a_gray_mis_0.jpg
},
{
“Image url 5”: “https://cdn.leonardo.ai/users/9764fas-8322-93ea56448ab1/generations/b1e46baa-3f98-4c03-bf49-8ae190536e37/Leonardo_Lightning_XL_When_he_woke_up_he_found_himself_at_the_0.jpg
},
{
“Image url 6”: “https://cdn.leonardo.ai/users/9764fe4adas-93ea56448ab1/generations/32f4f89a-e2d4-40c6-8f65-23e6f93390c4/Leonardo_Lightning_XL_Unaware_of_how_he_got_out_Jick_looks_int_0.jpg
},
{
“output”: {
“S1”: “In the distant future, humans have successfully moved to Mars and begun deep mining of the Randolph ore.”,
“S2”: “However, the miners began to disappear one by one, and eerie noises emanated from the mine.”,
“S3”: “Adventurer Jick decided to delve into the mines to uncover the mystery. He encountered these missing workers but found them completely devoid of human consciousness, devoted to relentlessly mining the Randolph ore.”,
“S4”: “Suddenly, Jick was engulfed by a gray mist that sprang from nowhere, and incomprehensible illusions flashed before his eyes.”,
“S5”: “When he woke up, he found himself at the top of the mine with unfamiliar tools around him, and the mine… had become infinitely deep, like an endless black hole.”,
“S6”: “Unaware of how he got out, Jick looks into the now seemingly bottomless mine, confusion and fear reflecting in his eyes.”,
“T”: “The Deep Mineshaft”,
“D”: “In the distant future, humans discover the mystical Randolph ore on Mars. However, those delving deep into it start disappearing. What’s going on? #SciFi #MarsExploration #RandolphOre
}
}
]
my merge output is this one.
But when i use
{
“template_id”: “1b945644ad785”,
“modifications”: {
“Image-1.source”: “{{ $json[‘Image url 1’] }}”,
“Voiceover-1.source”: “{{ $json.output.S1 }}”,
“Image-2.source”: “{{ $json[‘Image url 2’] }}”,
“Voiceover-2.source”: “{{ $json.output.S2 }}”,
“Image-3.source”: “{{ $json[‘Image url 3’] }}”,
“Voiceover-3.source”: “{{ $json.output.S3 }}”,
“Image-4.source”: “{{ $json[‘Image url 4’] }}”,
“Voiceover-4.source”: “{{ $json.output.S4 }}”,
“Image-5.source”: “{{ $json[‘Image url 5’] }}”,
“Voiceover-5.source”: “{{ $json.output.S5 }}”,
“Image-6.source”: “{{ $json[‘Image url 6’] }}”,
“Voiceover-6.source”: “{{ $json.output.S6 }}”
}
}
The output always undefined. But i use the mouse to grab the data to parameter. I don’t know why.

To Reproduce


like this merge and post

Expected behavior

i think the parameter should mapping right

Operating System

windows

n8n Version

[email protected]

Node.js Version

v22.13.0

Database

SQLite (default)

Execution mode

main (default)

mmm your post seems has some formatting issue…

I used drag-and-drop to fill in the parameters, but it’s still showing as undefined. I don’t know why

Can you post a pic or code using the </> Button?

Try to put a set node and map every single field
Add also a generic field {{ $json.toJsonString() }}
Maybe it help to know what is inside node reply

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