Why does $.flow.trigger cause interference between similarly named steps in different workflows?

This topic was automatically generated from Slack. You can find the original thread here.

I found a problem with $.flow.trigger
I have two workflows W1 and W2. W1 calls W2. I had the issue, that in the second workflow W2 a property from my step “prepareData” could not be read and was always undefined. But when I run W2 alone, everything works fine.

After investigating some time I found out. that both workflows had a step “prepareData”. The one in W1 didn’t have the property, the one in W2 has the property.I renamed the step in W1 and now the workflows work together. Looks like they access the steps of the other workflow if called by $.flow.trigger

Good call! I’ll add this to the troubleshooting docs

Thanks for sharing!

I’ll also try to reproduce and check with the team

Hey , I tried to repro but wasn’t able to — what is the workflow ID for W1 and W2?

and

in the second one you see also all the failed runs

Hmm yeah I see it

I think this is being tracked by the team btw

Steps with the same name in subflows got “overwritten”