Hey guys,
I’m new to n8n and have been struggling quite a bit over the last few days. In the workflow shown below I have a final “Set” Node, that should bring everything together so that it’s easily usable for an http request.
Now for some reason it returns “null” for every single value besides the last one. I already had the same issue with if. Am I using the branch structure wrong?
Would gladly appreciate help! 
Hi, i think you forgot to set this:
reg,
J.
It’s an option/toggle in the last set node (below the fields)
1 Like
Even though address and package name work now, I still seem to get a “null” on the formatted dates, despite having turned it on on all the Set Nodes I had…
Hi, you might need a merge node before that (before the last set), you need to test.
reg,
J.
Still having the same error, this time with the switches. For some reason one of the two compared numbers simply show up as [undefined]
The top half as well as the merge in the end works perfectly.
hi, would you be able to pin the data please, since i have no way to simulate it.
reg,
J.
How do I pin data? 
And what data should I pin exactly?
Hi, can you look in the doc for this, it’s all explained. Just some real output data so I can see what is where. I don’t have your notion access so I cannot simulate
The idea is to run it and to fix the output data at each node so i can troubleshoot it with real data. Now I’m just talking in the air.
Reg,
J.
This is how the [undefined] thing I talked about looks like:
The switches just don’t output data…
Here is the code with pinned data in all relevant nodes before the switches:
Update: I’m getting closer.
Ai made me realize that I need to merge the data before giving it to the switch, because otherwhise it’s two different chains running and the switch can’t possibly recieve the data from the other block since it’s not in the same chain.
Here is my code for now:
Just for the sake of completeness: I’m done with the whole workflow. The problem was mainly the non-merging thing that was already mentioned above. I wanted to uplod the workflow code, but I’ts way too big, so here is a screenshot xD
1 Like