How to test "called" workflow with binary data?

I have one workflow which calls another via the Execute Workflow node. The first workflow’s output contains binary data. How do I test the second (called) workflow with the binary data included?

IOW, how do I include binary data in the Execute Workflow trigger node’s mock output data in order to test the workflow?

:confused:

Information on your n8n setup

  • n8n version: 1.58.2
  • Database (default: SQLite): Postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: macOS (dev), Ubuntu (prod)
1 Like

Hello, you could try creating a third workflow for sending the mock output data to the second workflow. For example, manual trigger → download google drive file → call another workflow. Should work as workaround.

If I understand correctly, that wouldn’t help. I’d instead have to place that logic inside the called workflow in order to step through the flow and “see” the inputs/outputs. And then I’d have to disable or delete it after testing, which seems janky. :neutral_face:

Can you share your workflow? You can just execute the first workflow and let the second workflow just use a set node and called by other workflow it pin the data and the build/test the second workflow.

I’m not at my computer right now to share a screenshot, but I don’t think binary data can be pinned. The problem is not calling the second workflow with binary data. The problem is having access to the binary data within the second workflow as I step through it.

To clarify a bit more, binary data can be pinned between nodes within a workflow, but I don’t see a way to pin it across workflows - i.e. to have access to the binary data within the called workflow as I step through it.

See the screenshots attached: Is this what you need? Best would be if you can share a picture / or copy the json data of the nodes.

Oh and if you don’t need the binary data at the beginning of the second workflow, you might want to cache it somewhere and call it again later.

Thanks for trying to help, @sfx. I appreciate it.

How do you get the binary data to show up as output of the Execute Workflow Trigger node? That’s the main thing I don’t understand.

I think I might have answered my question. I just noticed the Copy to editor button for past executions, but when I click it, I get…

Assuming it copies binary data too, I guess what I’m wanting to do just isn’t available on self-hosting. :neutral_face:

2 Likes

Hey @sfx, I’ve tried to reproduce your example, but I just can’t understand how you got the binary data into the “called” workflow (Execute Workflow Trigger). Maybe there’s a setting I’m missing somewhere?

I’ve attached both the calling and called workflows below. If you get a chance, I’d appreciate any info or insights you can share.

 

Calling Workflow
Called Workflow

 
Thanks much!

Hello,

maybe I was missing that I’m personally using n8n cloud within the Pro Subscription.

Perhaps the debugging feature is not available in the self hosted version. Especially the “free” one.

1 Like

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