How to force the output of a Schedule trigger?

Hi guys, I’m having a problem and would like to understand it better, I have a birthday flow that I’ve already discussed in other topics, but it doesn’t work autonomously, I found that it’s due to the first node that changes the output and causes the error.
When I do the “test” I force the Schedule trigger output to be a Json with the following data:

[
{
“name”: “Pedro”,
“date”: “08/12”,
},
{
“name”: “Flávia”,
“date”: “12/12”,
},
{
“name”: “Ederson”,
“date”: “16/12”,
}
]
Can anyone explain to me better what is happening and how to fix it?
I’m using the cloud

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:

Hey @Pedro_Malaquias Could you please share whole workflow to better understand the issue.

In this first print (which is also the first step) I force the “output”, in test mode when I click on “execute workflow” it works exactly with this output

In the second, this is where I validate the other steps.
The problem is, when I “execute” only the first step, the output changes as shown below, which means nothing else works. Is there any way to pass this output or fix this data somewhere within n8n? without me needing to make a query or something like that in an api?

I apologize for not being able to share the pure workflow here, but there is sensitive data that I cannot leak, so I decided to send prints.

Yes , should move your data to Code node for instance, and put it after Schedule node

2 Likes

ficaria algo assim?

Deste modo apresenta o erro:
image

and when removing from the array it gives me a syntax error.
here is my json:
[
{
“name”: “Angelo”,
“date”: “29/06”,
“description”: “mestre do copilot,gênio do geogussr, inimigo da Steam”,
},
{
“name”: “Lucas”,
“date”: “08/03”,
“description”: “Alto, parece um poste (é o que dizem), Velho, precisa de calcitran B12, Gamer nas horas vagas, Nerd”,
},
{
“name”: “Nadai”,
“date”: “05/01”,
“description”: “Youtuber,Careca,Rei do drift”,
}
]

Sorry, I realized where the error was, I put it aside, I was supposed to do everything at once, it worked thank you!!

Welcome, glad to help, please mark the post as solution if it is.

1 Like

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