Bubble make change to a thing unreliable?

So I am encountering a tricky situation in which I need to update a thing with the value of an input. I’m trying to validate if that value inst saved in the database already, but sometimes bubble will not complete the search and just ignore the whole step and move over without making any update even though there is no previous similar value in the database.

what I assume is that the search takes too long to complete and the workflow continues without completing that step.

any suggestions?

Use a condition on the workflow action that does the search…this way the workflow action will not complete until the search is complete