# Thing created before "create thing" workflow executed

**URL:** <https://forum.bubble.io/t/thing-created-before-create-thing-workflow-executed/270513>\
**Category:** Need help\
**Created:** [July 1, 2023, 5:08pm UTC](https://forum.bubble.io/t/thing-created-before-create-thing-workflow-executed/270513 "2023-07-01T17:08:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JW13](https://avatars.discourse-cdn.com/v4/letter/j/b5e925/32.png) [@JW13](https://forum.bubble.io/u/JW13)\
**Post date:** [July 1, 2023, 5:08pm UTC](https://forum.bubble.io/t/thing-created-before-create-thing-workflow-executed/270513/1 "2023-07-01T17:08:13Z")

</div>

Hi,

I am having an issue and I am wondering if this is a bug in Bubble’s system. I have a workflow that when I click a check mark in a repeating group, it creates a thing in a different data type.

When I view the workflow in the debugger / step by step view, it appears that before the workflow actually begins, the thing is created. Then when I hit run next, the create thing workflow runs again, which is an issue because I have some fields whose values are conditional on the next highest value (i.e. value = current max value + 1). As a result, my whole data set gets messed up.

Has anyone had an issue with this? I see there is a post from this back in 2020, but it doesn’t seem it was every resolved., and bubble should know this is still an issue.

> [@Bubble creating "thing" before it gets to the creation step in the workflow](http://forum.bubble.io/t/bubble-creating-thing-before-it-gets-to-the-creation-step-in-the-workflow/99679/3):
>
> Sure thing @mikeloc , This is the workflow for the button click. The highlighted parts in order are a check to see if the client exists, a step to create the client if it does not exist, and the step after that was a custom workflow I trigger to do the same thing. Initially I thought it was doing something weird because it was in a custom workflow so I pulled that step out into the main workflow. This is the database for my client object, which I emptied prior to testing this w…

---

<div class="post-metadata">

**Author:** ![mikeloc](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikeloc/32/93001_2.png) [@mikeloc](https://forum.bubble.io/u/mikeloc)\
**Post date:** [July 1, 2023, 5:27pm UTC](https://forum.bubble.io/t/thing-created-before-create-thing-workflow-executed/270513/2 "2023-07-01T17:27:47Z")

</div>

Hi there, @JW13… if I had known as much in June of 2020 as I know now… and if [this post](http://forum.bubble.io/t/tip-order-of-operation/151699/2) had existed at the time… I would have gone down the order of operations path in that thread for sure. If you haven’t seen that post, you should definitely check it out, and you should consider restructuring your workflow(s) accordingly.

The above being said, I’m not saying for sure that you aren’t running into a bug, but I think it’s more likely that the order of operations stuff is causing the issue.

Anyway, just something to consider there, and I hope it helps.

Best…  
Mike

---

<div class="post-metadata">

**Author:** ![JW13](https://avatars.discourse-cdn.com/v4/letter/j/b5e925/32.png) [@JW13](https://forum.bubble.io/u/JW13)\
**Post date:** [July 1, 2023, 5:32pm UTC](https://forum.bubble.io/t/thing-created-before-create-thing-workflow-executed/270513/3 "2023-07-01T17:32:52Z")

</div>

Hey @mikeloc. Thanks for the quick reply and for directing me to that post.  
Let me take a look there and see if I can fix the issue. Taking a quick scan, it could be that my conditionals are at the action level and not the workflow level.

---

<div class="post-metadata">

**Author:** ![ihsanzainal84](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ihsanzainal84/32/245932_2.png) [@ihsanzainal84](https://forum.bubble.io/u/ihsanzainal84)\
**Post date:** [July 3, 2023, 1:58pm UTC](https://forum.bubble.io/t/thing-created-before-create-thing-workflow-executed/270513/4 "2023-07-03T13:58:35Z")

</div>

If your create action is part of the when check mark value is change event try use a custom workflow instead.

Put all actions into a new custom workflow. Then when the check mark value is changed, use the schedule a custom event action with a .5 delay. That _should_ help.

---

<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:** [September 9, 2023, 5:08pm UTC](https://forum.bubble.io/t/thing-created-before-create-thing-workflow-executed/270513/5 "2023-09-09T17:08:30Z")

</div>

Closed on September 9, 2023, 5:08pm UTC

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