tableau_tools icon indicating copy to clipboard operation
tableau_tools copied to clipboard

Is it possible to create a datasource programatically?

Open manugarri opened this issue 5 years ago • 0 comments

I am trying to create a connection to a database programatically. The goal is to add access to different databases with the same schema automatically.

I am using tableau-tools==5.1.3.

I basically created a connection in Tableau online (connecting to a snowflake database) and downloaded the file as tds.

Then i edited that tds to change the named-connection name property and the connection dbname,server,username, and warehouse properties. I removed all the extracts (since i believe those are generated).

I use the publish_datasource method updating the username and password. I can indeed see the datasource in tableau online, however any attempt to refresh it fails in the ui with no descriptive error.

Is there anything else that needs to be done?

manugarri avatar Mar 11 '20 17:03 manugarri