KimSa
June 16, 2025, 8:59am
1
I follow the “Running Sub-Workflows to Iterate and Process Data with AI” and at time 3’24, I get an error message shown on the picture about the launch variable configuration.
Can someone show me how to fix it?
The lecture: https://www.youtube.com/watch?v=6GubegBVSXA&t=186s
Hi @KimSa ,
Thanks for the screenshot!
It looks like the Launch Variables haven’t been defined in your sub-workflow, which is why the Run Workflow block isn’t accepting the configuration.
I recommend remixing the sample Agents that use the Run Workflow block to see how it’s set up:
https://community.mindstudio.ai/t/troubleshooting-guide-101/71#p-104-run-workflow-block-error-7
Here are the key steps:
Add another workflow to your Agent
Define Launch Variables in the Start block of the sub-workflow (data you’ll pass to the sub-workflow)
Add a key-value pair in the End block (data that will be returned to the main workflow)
Configure the Run Workflow block in the main workflow
These steps are also shown in the video you shared at 2:15:
Hope this helps!