5 Replies Latest reply on Apr 19, 2019 3:29 AM by JOSE CHERIAN

    How to automate multiple prep flows in a .bat file?

    Jeff Holland

      I am trying to figure out how to run multiple tableau flows through a .bat file.   I have three flows I need to run regularly and I tried to create a .bat file that I can run that just runs one after the other.   Using the command line interface for prep, I have no trouble getting the first one to run, but after it runs, it exits the .bat file and never runs the next line.   Something like this is what I am trying to do.  All this is on my machine, no servers or data sources not on my machine.

       

      "C:\Program Files\Tableau\Tableau Prep 2018.3\scripts"\tableau-prep-cli.bat   -t "C:\Users\XXXXX\OneDrive - XXXX\YYYY\Data Prep\Cleaning File.tfl"

      Echo One Done

      "C:\Program Files\Tableau\Tableau Prep 2018.3\scripts"\tableau-prep-cli.bat   -t "C:\Users\XXXXX\OneDrive - XXXX\YYYY\Data Prep\Scorecard transformation.tfl"

      Echo Two Done

      "C:\Program Files\Tableau\Tableau Prep 2018.3\scripts"\tableau-prep-cli.bat   -t "C:\Users\XXXXX\OneDrive - XXXX\YYYY\Data Prep\Dashboard v2.tfl"

      echo Three Done

      PAUSE

       

      Any ideas?