Variable is only updated at second try

Dear OD users,
I implemented a workflow that gets triggerd by an APP. This WF chooses a datatable to load according to a variable from the APP and saves the loaded datatable it to a datatable, which is loaded by the APP to display.
But sadly, I need two times to load the correct datatable, because the variable is only updated every second time correct. Does someone has a solution for this Problem?

Any help would be great :blush:

As it turned out, it was a mistake from my side in how the custom component processed the effects. After I adjusted the order, it worked.