Sub-Workflow doesn't allow to do anything with data

Describe the problem/error/question

Sub workflow receives data, but it’s impossible to map it, neither with code nor anything, making it unusable, however, if I check execution,n it’s marked as successful but I can’t process it any way.

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.81.4
  • Database (default: SQLite): PostgreSQL
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker self hosted
  • Operating system: Linux

Hey there, could you share the snippet of the workflow that sends information over to the Sub-Workflow?

Hey @ramblingnate, it would be nice to see your workflow here. Normally you should be able to define the fields you’re expecting in the sub workflow trigger and then just use it.

@Niklas_Hatje @manueltnc

Here you go. Again the problem is that that sub workflow passes the data but I only see it after it’s executed in the Executions but I can’t adjust it in the middle even if I execute main flow step by step.

@ramblingnate any chance you could add that as a code block? It seems like there’s some issue in your JSON right now that prevents me from pasting it in.

my appologies I should have tested it when I stripped it of real data. updated previous post and it’s good now.

JSON Is properly formatted. The problem is on the receiving end. Data is received but only when I check execution not in step by step, so I can’t define fields to grab with edit node for example.

@ramblingnate can you move it inside a code block? Currently the enquotation doesn’t work for me

should be good now, applogies for not doing it in the first place

Might not fully understand what you’re looking to do but have you tried copy/pasting and pinning data in the output of the “When executed by another workflow” node in the subworkflow and then doing the mapping as you please in the “Edit Fields” node?

Then, when running the subworkflow from the main one it should then work. Don’t forget to unpin though so let the live data go through.

This is what I mean. I took your pinned webhook data and pinned it in the output of the first node in the subworkflow so I can map. Is this what you were looking to do?

yup I pinned it while I was testing and trying to figure out why it’s not going the set fields node.

If you look at my intitial post you will see that a subworklow receives data but in the ouput of this node it’s empty, however when I check executions the data is there.

I believe it’s a bug.

@Niklas_Hatje can you confirm it’s a bug?

I’m currently having the same problem as well. I see the data in the execution, but when I copy it into editor, I don’t see any data.

@Niklas_Hatje appologies for bothering you but have you had a chance to look at it?

Hey @ramblingnate,

I’m still not 100% sure what the problem is. I just used your workflow in a quick example. Instead of mapping the field, you could also try to accept all data instead. Let me know if that helps: