bug: subflow not passing error related flow variables upwards
Describe the bug
I have a simple python "send an email" error handler. A subflow in one of my flows failed and the error.x variables apparently didn't propagate up to the parent flow for the error handler:
{
"error": {
"name": "ExecutionErr",
"message": "Error during isolated evaluation of expression `error.message`:\nTypeError: Cannot read properties of undefined (reading 'message')\n at <anon>:47:18\n at <anon>:48:3"
}
}
This is a showstopping bug for me since it means any error in a subflow is now silent.
To reproduce
- Create a flow with an error handler that takes
error.messageas an argument - Add a subflow to this flow
- Have an error in the subflow
Expected behavior
The subflow's error propagates upwards
Screenshots
No response
Browser information
Chrome Version 139.0.7258.67 (Official Build) (64-bit)
Application version
CE v1.523.0-3-g60dd969d6
Additional Context
No response
I've run into what I think is a related sub-issue of this. When opening a "Run" where a subflow errored I now get a massive stack of identical error toasts on the right side of window saying "Missing id:
Hi Could you send us a reproduction of a minimal flow and how to run it to reproduce the errors please. I couldn't reproduce with a trivial reproduction of either issues on latest releases.
I can't reproduce the "missing ID" bug with a miniature example, but I can reliably reproduce the error handler failure with the below structure. The inline python script in the subflow's Branch 1 is a oneliner that just throws an error for testing purposes: def main(): raise Exception("Testing error"). Branch 2's script does nothing and is a placeholder.
With this structure the error handler itself will have an error and be unable to access the error related variables it needs.
Digging back through my logs the "Missing ID: C" errors only show up on runs after I added retries to the subflow and where the subflow was the error. If the subflow succeeds I can expand it fine. It needs both retries and for the subflow itself to be the error. Additionally if i expand the subflow in a successful run and then go to an errored run it will still be expanded in the righthand frame, but it will flood me with the "missing ID" errors and I can't shrink it.
The only difference I can spot between it and the below mini-example is the bugged flow has a red "3" next to the retries icon in the Runs page.
Is it possible the "missing ID" issue is specific to my deployment? I had a similarly unreproducible issue back when a change was made so only deployed scripts could be inserted to flows. All of my scripts were set as deployed but still unusable. The issue then was basically a severe edge case caused by how infrequently I update and gremlins. Maybe I've got some similar bit rot here and these are separate problems.
this no longer reproduces on main at 1f39e1e0 (ce v1.875.0): a subflow step with retries whose inner parallel branch raises still gives the flow error handler error.message == "Testing error", and no "missing id" toasts appear when expanding the failed subflow — could you retry on a recent version?