Hi Friends
I need to write Alteryx Results in to DB Tables. Before writing, I need to check is there any data available in Staging table. If available write data into Archive Table and then write data to Staging. To handle this, I follow below steps.
- Reading count of records from Staging Table (1 - data exists/0-no data).
- Appending this value with actual data (simply)
- Checking in Filter about data count.
- Filter tool : If data exists, then in output File, I have Pre SQL statements to perform below and then write data into Staging table
- Insert into Archive table from Staging Table
- Truncate Archive Table
- If there is no data in staging, then data will be directly inserted into Staging table
However, when I execute Query, both output files are executed, instead of one output flow.
I thought, enabling/disabling containers will sort out issue. But, I dont know how to pass filter values to Containers. Please suggest me best practice to implement this.
Flow
In the below flow Output Data (105) Should not be executed as Filter conditions fails there.

Thanks
Antony