# N8N data from main workflow not passing trough in subworkflow

**URL:** <https://community.n8n.io/t/n8n-data-from-main-workflow-not-passing-trough-in-subworkflow/115805>\
**Category:** Questions\
**Created:** [May 15, 2025, 10:31am UTC](https://community.n8n.io/t/n8n-data-from-main-workflow-not-passing-trough-in-subworkflow/115805 "2025-05-15T10:31:01Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scales\_Ai](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/scales_ai/32/59218_2.png) [@Scales\_Ai](https://community.n8n.io/u/Scales_Ai)\
**Post date:** [May 15, 2025, 10:31am UTC](https://community.n8n.io/t/n8n-data-from-main-workflow-not-passing-trough-in-subworkflow/115805/1 "2025-05-15T10:31:01Z")

</div>

Hey I am struggling to pass data from my main workflow to my sub workflow. The master ai (router) needs to pass a Telegram ID to a sub workflow. When I look at the input from the master ai to the subworkflow I see the correct data coming trough (a telegram ID) but in my sub workflow it says: query: null. What am I doing wrong?

 ![Scherm­afbeelding 2025-05-15 om 12.28.44](https://europe1.discourse-cdn.com/n8n/original/3X/1/a/1aa982a8dcc433935e1b327893a50350f7976a8f.png)  
 ![Scherm­afbeelding 2025-05-15 om 12.29.13](https://europe1.discourse-cdn.com/n8n/original/3X/a/8/a8aa7b9457a3e3df7c06ff0665a127668bda1cb2.png)

---

<div class="post-metadata">

**Author:** ![tridi](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/tridi/32/109193_2.png) [@tridi](https://community.n8n.io/u/tridi)\
**Post date:** [May 15, 2025, 11:00am UTC](https://community.n8n.io/t/n8n-data-from-main-workflow-not-passing-trough-in-subworkflow/115805/2 "2025-05-15T11:00:57Z")

</div>

Hi [Scales\_Ai](http://community.n8n.io/u/Scales_Ai) welcome to n8n comunity :n8n:

I saw you just need 1 parameter to pass so why you dont make the sub workflow to accept all data?

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/a/b/abc792bc163bd01036bcd699b254bf47d209ec01.png)

But if you still want to define the parameter manually, make sure you click this option to refresh

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/7/e/7ec7569fab25abc50012870d1c5c3938a8629aa0.png)  
 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/f/6/f64bf49d5c53f02d920fa58d0718f70dad6a5f36.png)

---

<div class="post-metadata">

**Author:** ![Scales\_Ai](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/scales_ai/32/59218_2.png) [@Scales\_Ai](https://community.n8n.io/u/Scales_Ai)\
**Post date:** [May 15, 2025, 11:04am UTC](https://community.n8n.io/t/n8n-data-from-main-workflow-not-passing-trough-in-subworkflow/115805/3 "2025-05-15T11:04:37Z")

</div>

![Scherm­afbeelding 2025-05-15 om 13.04.27](https://europe1.discourse-cdn.com/n8n/original/3X/a/1/a1116be9285002753a5316fe2327dae0eb39c7d4.png)

---

<div class="post-metadata">

**Author:** ![Scales\_Ai](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/scales_ai/32/59218_2.png) [@Scales\_Ai](https://community.n8n.io/u/Scales_Ai)\
**Post date:** [May 15, 2025, 11:05am UTC](https://community.n8n.io/t/n8n-data-from-main-workflow-not-passing-trough-in-subworkflow/115805/4 "2025-05-15T11:05:38Z")

</div>

![image](https://europe1.discourse-cdn.com/n8n/original/3X/3/6/363ee77a502ba147926dac66b1c75b921603da64.png)

---

<div class="post-metadata">

**Author:** ![tridi](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/tridi/32/109193_2.png) [@tridi](https://community.n8n.io/u/tridi)\
**Post date:** [May 15, 2025, 11:54am UTC](https://community.n8n.io/t/n8n-data-from-main-workflow-not-passing-trough-in-subworkflow/115805/5 "2025-05-15T11:54:29Z")

</div>

I just tried it on my self-hosted instance, and I’m also not having any issues trying it on n8n cloud.

Have you try to remove that tools and make a new one then use the ID of the sub workflow?

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/f/2/f29896181190ebe41ff98d96de083e5be6d15d3c.png)  
 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/9/9/9923dbcc72fa7a730d8a00acd6856e8133ce8000.png)

---

<div class="post-metadata">

**Author:** ![mredodos](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mredodos/32/49280_2.png) [@mredodos](https://community.n8n.io/u/mredodos)\
**Post date:** [May 15, 2025, 12:30pm UTC](https://community.n8n.io/t/n8n-data-from-main-workflow-not-passing-trough-in-subworkflow/115805/6 "2025-05-15T12:30:45Z")

</div>

can you share your workflow?

---

<div class="post-metadata">

**Author:** ![Scales\_Ai](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/scales_ai/32/59218_2.png) [@Scales\_Ai](https://community.n8n.io/u/Scales_Ai)\
**Post date:** [May 15, 2025, 1:35pm UTC](https://community.n8n.io/t/n8n-data-from-main-workflow-not-passing-trough-in-subworkflow/115805/7 "2025-05-15T13:35:44Z")

</div>

how do I do that?

---

<div class="post-metadata">

**Author:** ![Scales\_Ai](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/scales_ai/32/59218_2.png) [@Scales\_Ai](https://community.n8n.io/u/Scales_Ai)\
**Post date:** [May 15, 2025, 1:40pm UTC](https://community.n8n.io/t/n8n-data-from-main-workflow-not-passing-trough-in-subworkflow/115805/8 "2025-05-15T13:40:00Z")

</div>

I tried it yes, doesn’t work…

---

<div class="post-metadata">

**Author:** ![tridi](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/tridi/32/109193_2.png) [@tridi](https://community.n8n.io/u/tridi)\
**Post date:** [May 15, 2025, 1:47pm UTC](https://community.n8n.io/t/n8n-data-from-main-workflow-not-passing-trough-in-subworkflow/115805/9 "2025-05-15T13:47:33Z")

</div>

Block all your related nodes workflow and copy it (ctrl+c)

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/b/0/b0e5ee8466abec50d7e162f937c146ea5420e447.png)

then when you reply, you can paste after click this button

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/3/1/312f76682333944564a605a7e79f2e86edbf4a1e.png)

Result:

---

<div class="post-metadata">

**Author:** ![Scales\_Ai](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/scales_ai/32/59218_2.png) [@Scales\_Ai](https://community.n8n.io/u/Scales_Ai)\
**Post date:** [May 19, 2025, 1:18am UTC](https://community.n8n.io/t/n8n-data-from-main-workflow-not-passing-trough-in-subworkflow/115805/10 "2025-05-19T01:18:24Z")

</div>

When I accept all data. there is nothing coming trough still…

---

<div class="post-metadata">

**Author:** ![King\_Samuel\_David](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/king_samuel_david/32/83690_2.png) [@King\_Samuel\_David](https://community.n8n.io/u/King_Samuel_David)\
**Post date:** [May 19, 2025, 1:36am UTC](https://community.n8n.io/t/n8n-data-from-main-workflow-not-passing-trough-in-subworkflow/115805/11 "2025-05-19T01:36:00Z")

</div>

you probably want to define what inputs it needs, in the tools node on main workflow, in description so the ai model know what to send to the tool, this would probably help.

---

<div class="post-metadata">

**Author:** ![Scales\_Ai](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/scales_ai/32/59218_2.png) [@Scales\_Ai](https://community.n8n.io/u/Scales_Ai)\
**Post date:** [May 19, 2025, 2:11am UTC](https://community.n8n.io/t/n8n-data-from-main-workflow-not-passing-trough-in-subworkflow/115805/12 "2025-05-19T02:11:19Z")

</div>

![image](https://europe1.discourse-cdn.com/n8n/original/3X/e/b/eb864d28ecfe4be046e8636b998367f1481bf7df.png)  
There is a string available that it send now right? But still there is no data coming in in the subworkflow..

---

<div class="post-metadata">

**Author:** ![Scales\_Ai](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/scales_ai/32/59218_2.png) [@Scales\_Ai](https://community.n8n.io/u/Scales_Ai)\
**Post date:** [May 20, 2025, 12:19am UTC](https://community.n8n.io/t/n8n-data-from-main-workflow-not-passing-trough-in-subworkflow/115805/13 "2025-05-20T00:19:15Z")

</div>

Eventually, I managed to get it working. I first configured the node to accept all incoming data, then inspected the execution logs to analyze the exact JSON payload the AI was sending. I copied this data and used it as mock data by setting it as a variable. This allowed me to simulate the expected input and verify the workflow behavior.

Interestingly, once I unpinned the mock data, the sub-workflow seemed to have “learned” the expected structure, and from that point on, the correct information was passed through consistently. It appears that initializing the sub-workflow with valid mock input helped it recognize and align with the actual data schema going forward.

---

<div class="post-metadata">

**Author:** ![mredodos](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mredodos/32/49280_2.png) [@mredodos](https://community.n8n.io/u/mredodos)\
**Post date:** [May 23, 2025, 4:30pm UTC](https://community.n8n.io/t/n8n-data-from-main-workflow-not-passing-trough-in-subworkflow/115805/14 "2025-05-23T16:30:31Z")

</div>

in the description normally you need to set a desciptions of what doing th tool not a variable or something dynamic

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [May 30, 2025, 4:30pm UTC](https://community.n8n.io/t/n8n-data-from-main-workflow-not-passing-trough-in-subworkflow/115805/15 "2025-05-30T16:30:49Z")

</div>

Closed on May 30, 2025, 4:30pm UTC

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