API Workflow Action Runs Randomly

Hello!

I’ve been having this issue with API workflows where an action inside of it will sometimes run and other times won’t, without any apparent reason. The worst part is that in the logs, it says that the action ran successfully when it obviously didn’t. Here’s how it’s set up:

  • When the “Create Tourney” button is clicked, a couple of things happen in the front-end and also I schedule my API workflow (screenshot 1). All good so far.

  • Inside that API workflow, I create a Tourney Category and in the second action I want to add this newly created Tourney Category to the Tourney I created in the front end. This is where the issues happen (screenshot 2). All the categories are created properly, but sometimes they are added to the Tourney and sometimes they’re not. Seems to be completely random.

I checked the logs one by one and it said that all the categories were successfully added to the tournament created but when I checked the app data, it was clearly not the case.

Everything works perfectly, except for that specific “Make changes to Tourney” action.

Am I doing something wrong here? Would appreciate your help!


Try scheduling current +5 sec

1 Like

I found a workaround more than a solution:

Instead of having an action to “Make changes to Tourney”, which would sometimes run and sometimes wouldn’t, I created a custom event that does that same action and placed that instead.

I tested this and this worked properly every time. I think this way it makes sure that it always runs the action before proceeding on to the next.

Hope this helps anyone in this same situation!

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