Can We Upload Tableau Workbook On Gitbub
tableau-deploy
A tool to publish Tableau dashboards to Tableau server.
Notes and Gothcas
Adding Tableau to your CI/CD pipeline comes with a number of unexpected surprises and gotchas. Below is a listing (or perhaps more of a encephalon-dump) on some items to keep in mind when developing a Tableau deployment solution:
-
In club to check in your workbook to Git (or another VCS) you need to ensure that your embedded extract extracts are empty. For reference: https://www.tableau.com/en-gb/about/web log/2013/9/like shooting fish in a barrel-empty-local-extracts-25152-0
-
It is important to set the appropriate possessor for the workbook. This will ensure notifications volition go to the advisable person / group.
-
Ensure you forcefulness UTF-8 encoding everywhere when dealing with the XML file. Mistakes tin can creep in if you lot work on both Windows and Linux. Some versions of these will have default graphic symbol sets non supported by Tableau. Using UTF-viii is ever the safest.
-
You may find that setting refresh schedules on your workbook through the API might inexplicably fail. This is considering there is a required ordering to how
datasource
children elements should announced in thedatasources
parent. You must ensure that alldatasource
children elements with arefresh
sub-kid with anincremental-updates
attribute oftrue
must be last in that child list. -
The latest version of Tableau (2020) converts total text values to CDATA XML entries rather than escaping the private characters. This tin crusade problems if your XML parsing tool adds a new line in front end of the CDATA tag. This causes issues with Tableau formatting.
Phased Deployment Workflow
When publishing a Tableau workbook it is often desirable to keep user downtime to a minimum. This can be achieved by get-go publishing the new workbook every bit a candidate. Following user or automated examination verification it can and so exist 'switched' over. To accomplish this you generally follow these steps:
- Publish the workbook with a 'candidate' proper noun (eastward.thousand. "*___Candidate"). API phone call
workbook?overwrite=true&asJob=true
- Wait the completion of the job. API call
jobs/jobId
- Update workbook owner and workbook connections (the latter needs to be done if you update the owner)
- Refresh the 'candidate' workbook (remember up to this indicate the workbook had an empty excerpt)
- Perform verification
- Download full workbook. API call
/workbooks/<workbook_id>/content?includeExtract=true
- Update the *.twb file inside the *.twbx file if required (due east.g. reorder the
datasource
elements as described above) - Upload the new workbook with the corrected name (eastward.yard. drop the "*___Candidate" suffix)
While this workflow is more involved, it reduces the downtime that whatever user will feel. Particularly if step (4) takes a long time to complete.
Can We Upload Tableau Workbook On Gitbub,
Source: https://github.com/byldworks/tableau-deploy
Posted by: ketnerrectereend.blogspot.com
0 Response to "Can We Upload Tableau Workbook On Gitbub"
Post a Comment