Hi @J_U ,
The specific error is because your Empty Table Switch has to be completed (with an End If or Case Switch End node) before the Loop End, because otherwise, in the event of the table being empty, the branch that is attached to the Loop End becomes “inactive” and that isn’t allowed.
e.g.
In it’s simplest form it would look like this:
In your case, you have two branches to be undertaken on a non-empty-table but you have specified nothing for the empty condition. To wire that up with valid branch terminations, you could do this:
BUT… Is the Empty Table Switch necessary?
It might be, it might not…
In the event that the table is empty, do the columns specified by Column Renamer and Column Resorter not exist? If so, I can see why you need to branch, but if the columns are always present, does it work anyway without the presence of the Empty Table Switch?
An Empty Table should not in itself prevent the loop continuing, and should have no effect on the output from the loop, since an empty table does not add any rows to the output. It is (in effect) “skipped”, which is why I wonder if you need the Empty Table Switch at all…
What happens if you simply leave in the Row Filter but remove the Empty Table Switch? Does the loop not complete?