You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Switch Statement not working

edited Mar 28, 2019 4:42PM in Integration 3 comments

Summary

The Otherwise branch never happens.

Content

Hello,

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.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!