How to Automate a Tableau Data Source Refresh with Alteryx

How to Automate a Tableau Data Source Refresh with Alteryx

Alex Suarez
//

So, you’ve finally worked out your ETL process using Alteryx and have it exporting a shiny new TDE file. Now what? Using the Run Command tool in Alteryx Designer you can automate the publishing of that TDE to Tableau Server, and here’s how you do it:

Step 1

Using Alteryx Designer, select the Workflow canvas to access the configuration panel:

Step 1

Step 2

Select the Events tab, click on the Add button and select Run Command:

Step 2 

Step 3

Select the appropriate value from the Run Event When drop-down (in my case, it is After Run Without Errors):

Step 3

Step 4

Set Command: to the path where you can find the tabcmd executable on the server that will be running this job:

Step 4

Step 5

Add in the Command Arguments: to set the following:

  1. publish (this is the action we are performing with tabcmd)
  2. the path and file name of the TDE
  3. –s  (the Tableau Server that you want to publish to)
  4. –u (the user that has the necessary permissions to publish this data source)
  5. –p (the password for that user)
  6. –n (the data source name)
  7. –overwrite (this flag is there so you can overwrite the existing data source)

 Step 5

Step 6

Finally, you want to increase the Timeout value based on how long it takes to publish your TDE:

Step 6

Step 7 

After the configuration is complete, you will want to confirm that the Enable Events checkbox is checked:

Step 7 

Now, after your job runs successfully, the newly built TDE file will automagically be published to your Tableau Server without having to use scripts to watch folders or copy files. 

Ref: http://help.alteryx.com/9.5/index.htm#cshid=ModuleProperties.htm#Events

Need Expert Help?

See Our Full Menu of Data Services

InterWorks uses cookies to allow us to better understand how the site is used. By continuing to use this site, you consent to this policy. Review Policy OK

×

Interworks GmbH
Ratinger Straße 9
40213 Düsseldorf
Germany
Geschäftsführer: Mel Stephenson

Kontaktaufnahme: markus@interworks.eu
Telefon: +49 (0)211 5408 5301

Amtsgericht Düsseldorf HRB 79752
UstldNr: DE 313 353 072

×

Love our blog? You should see our emails. Sign up for our newsletter!