Potential bug on recursive workflow

I have a recursive workflow triggered by a button that schedules a backend API call, uses a Stripe plugin, and then redirects the user off-site. No matter what I try, it keeps duplicating the data.

I’ve attempted every method I can think of to manage recursion—iterations, list popping, using first item # minus last, checking iteration counts, and ensuring numbers aren’t reused. Despite all this, the issue persists.

I recreated the exact same API call on a different page, and it worked with no issues. I checked the logs but couldn’t pinpoint the problem. I’ve even rebuilt the button multiple times, yet it still duplicates.

I think you want to use the “Schedule API workflow” action here rather than “schedule on a list” – I’m assuming your backend workflow is doing the work of iterating through a list since I see an index parameter.

If you’re triggering that workflow on a list, then you’re telling Bubble to run it multiple times (once for each item in the list).

Try it with the single “Schedule API Workflow” action. All your parameters should be the same.

Cheers,
Gaby
Coaching No Code Apps

2 Likes

You’re running a recursive WF on a list…

Is that your intention?

In most cases you’ll want to use either one or the other. i.e.

A recursive workflow OR running a workflow on a list. Not both (of course, there are some use-cases where you will want to do both).

Is that intentional here?

1 Like

Sometimes is the simple stuff you over look. No wonder it wasn’t working and I made it work 10 other times thanks totally resolved no bug

2 Likes

This topic was automatically closed after 14 days. New replies are no longer allowed.