Switch Statement not working
SummaryThe Otherwise branch never happens.
Here is the situation.
I've created a scheduled orchestration that does the following:
1. downloads and reads a data file from an FTP Server.
2. reads the file with a stage action
3. Assigns a variable to track iterations in a For Each Loop with a switch statement
4. A For Each Loop iterates through the data file
--> a switch statement follows the for each
--> if the increment < 1, the first branch creates a header file with column headers (the data file does not have headers)
--> the otherwise branch should happen if the increment is not less than 1. Here the Header File is appended for each record in the data file. THAT IS NOT HAPPENING. The generated file only contains headers. Logger actions confirm the otherwise branch is not happening.