I have a workflow that currently processes csv files and a separate workflow for xlsx files. I want to combine the two workflows into one and dynamically process csv files and xlsx files in a specific way depending on the file I receive.
We'll start with a directory tool and if the file is a csv, we'll do some processing, but if the file is an xlsx file we'll do some other processing. I tried using a filter to accomplish this.
My current issue is if I get a csv file for example, then the csv branch of the filter works fine, but the xlsx branch errors out. This is because the xlsx branch is expecting to process certain fields (e.g. adding a formula to make a specific field uppercase) that haven't been provided (since the xlsx branch has no data). The issue is persistent in the reverse case as well.
What can I do to fix this? I've heard about the detour tool, but not sure how to make it work in my case, since I want to schedule workflows in Alteryx Gallery and it seems the detour tool works best with user input. Guidance would be appreciated!