# API Workflows generating inconsistent results

**URL:** <https://forum.bubble.io/t/api-workflows-generating-inconsistent-results/154968>\
**Category:** Bugs\
**Created:** [June 9, 2021, 8:35am UTC](https://forum.bubble.io/t/api-workflows-generating-inconsistent-results/154968 "2021-06-09T08:35:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![datproto](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/datproto/32/85295_2.png) [@datproto](https://forum.bubble.io/u/datproto)\
**Post date:** [June 9, 2021, 8:35am UTC](https://forum.bubble.io/t/api-workflows-generating-inconsistent-results/154968/1 "2021-06-09T08:35:14Z")

</div>

Dear fellow Bubblers,

we are building an app for tournament management of gaming events. Over the course of building I found an issue, I perceive as harsh: API worflows in loops are delivering inconsistent results.

What do I mean by that?  
E.g. we have a round-robin algorithm scheduling our round-robin (obviously). To generate matches, chats etc., this is in total almost 10 different API Workflows with each having 6-10 substeps. However, even though this sound as much, it is not and DB entries generated are countable (depending on the size of the round-robin, however anyways less than a hundred).

However, it gets tricky. After debugging it for quite some time, I realized that these workflows are giving random results in different entities - even though this is the exact same workflow (!), just looped through.

I know indeed that is advised to outsource big data manipulation out of bubble and passing it back to the app, however I do not think that this is “big data manipulation”, as we are less than a hundred. Adding pauses (e.g. 5 seconds) between different workflows made it better, but it is still not consistent. Thus, is this a known issue?

To clarify: After many hours of debugging, this is no fault of my logic - this works flawlessly and it was tested with different samples. I can cross out faulty logic.

Best  
Dat

---

<div class="post-metadata">

**Author:** ![sudsy](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sudsy/32/114637_2.png) [@sudsy](https://forum.bubble.io/u/sudsy)\
**Post date:** [June 9, 2021, 1:00pm UTC](https://forum.bubble.io/t/api-workflows-generating-inconsistent-results/154968/2 "2021-06-09T13:00:23Z")

</div>

The first thing is to make sure you understand everything under **Execution Rules** on [this page](https://manual.bubble.io/help-guides/building-workflows/the-basics) of the Bubble manual.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [June 23, 2021, 8:36am UTC](https://forum.bubble.io/t/api-workflows-generating-inconsistent-results/154968/3 "2021-06-23T08:36:00Z")

</div>

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