I've created a Flow that takes information for a form and populates it in a particular table in an excel spreadsheet. There are 17 worksheets/tables. After creating the Flow, it seems as though the Flow keeps timing out.
I also kept getting a 'bad connection' to the excel connector, and the Flow automatically created a second one. I made a third and so each excel thing is on one of those three. That seemed to fix the fetch error I was getting. I think there were too many things connected to one connector?
Here is an image of what is within every switch case. Everything seems to work up to the last step of adding a row.
Before that, I am grabbing the latest row from the appropriate table, then getting the index number from that one so that I can provide a new index number for the new form entry, which is the last step there.
Each table has a different index, so I can't do the indexing part earlier than the switch statement.

Any ideas for making this better? I tried the flow for just one switch statement and it gets to the end and doesn't work. It just says "Bad Gateway".