Automating Tableau Online Extract Refresh Tasks Using Windows Task Scheduler

Published: 07 Apr 2015
Last Modified Date: 06 Mar 2017


When trying to refresh extracts using Windows Task Scheduler, the extract may not refresh successfully. 


  • Tableau Online
  • Windows Task Scheduler 


1. Open a text editor and use the following script for the correct directory and command to execute 

@echo on

cd "c:\program files\tableau\tableau 8.3\bin>"

tableau refreshextract --server --username --password password --site sitename --datasource "datasource_name" --source-username dbname --source-password dbpassword

2. Save it as a bat file with the .bat extension 

3. Create a new task in Windows Task Scheduler for running the .bat file. 
Did this article resolve the issue?