<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Tableau Server Insights Blog - Medium]]></title>
        <description><![CDATA[Concepts, case studies, test and experiments, tools, notes and insights about my experience as a Tableau Certified Architect, Consultant and Trainer. More info at https://www.linkedin.com/in/pietrogentini/ - Medium]]></description>
        <link>https://medium.com/tableau-server-insights-blog?source=rss----f133ff3d8557---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Tableau Server Insights Blog - Medium</title>
            <link>https://medium.com/tableau-server-insights-blog?source=rss----f133ff3d8557---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 12:46:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/tableau-server-insights-blog" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Testing Tableau Server Data Acceleration]]></title>
            <link>https://medium.com/tableau-server-insights-blog/testing-tableau-server-data-acceleration-5db1bf0fc89b?source=rss----f133ff3d8557---4</link>
            <guid isPermaLink="false">https://medium.com/p/5db1bf0fc89b</guid>
            <category><![CDATA[acceleration]]></category>
            <category><![CDATA[performance-improvement]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[tableau-server]]></category>
            <dc:creator><![CDATA[Pietro Gentini]]></dc:creator>
            <pubDate>Fri, 14 May 2021 14:58:03 GMT</pubDate>
            <atom:updated>2022-05-13T15:42:04.063Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Version 2021.1 Update</em></strong>: Starting in Tableau version 2022.1, with the introduction of <a href="https://help.tableau.com/current/server/en-us/data_acceleration.htm">View Acceleration</a>, <strong>the data acceleration feature is deprecated</strong>. Requests for data acceleration endpoints and attributes will not return an error, but will also not cause any change on the server or return meaningful information about data acceleration of a workbook.</p><p><em>Starting from version 2020.2, Tableau Server administrators can </em><strong><em>enable data acceleration for specific workbooks</em></strong><em>.</em></p><figure><img alt="Testing Tableau Server Data Acceleration" src="https://cdn-images-1.medium.com/max/1024/1*T5jN_xF-PQetEgQuaLU9XQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@o5ky?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Oscar Sutton</a> on <a href="https://unsplash.com/s/photos/speed?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>An accelerated workbook loads faster because Tableau Server pre-computes the workbook’s data in a background process (fetching the data needed after connecting to the underlying data source).</p><p><strong>Workbooks are not enabled for acceleration by default</strong>. The easiest way to configure data acceleration is to use the accelerate_workbooks.py Python script. It is also possible, but more difficult, to configure data acceleration using the Tableau Server REST API.</p><p>Data Acceleration <strong>supports:</strong></p><ul><li>Workbooks with published and live data sources (both with embedded credentials)</li><li>Workbooks with embedded extracts</li></ul><p>Workbooks with published and live data sources need to be added to a schedule (a schedule of type DataAcceleration) because Tableau Server needs to run the background precomputation periodically. <br>Workbooks with embedded extracts do not need to be scheduled, the acceleration will be updated when they are published or when their extract is refreshed.</p><p>Data Acceleration <strong>doesn’t support:</strong></p><ul><li>Workbooks with encrypted extracts</li><li>Workbooks that include user-based, now(), today() functions</li><li>Federated data sources</li><li>Data Blending (partially supported for acceleration, data against the secondary data sources are not accelerated)</li></ul><p>For more information about data acceleration, what is supported and not supported, and the resource implications of configuring it, see <a href="https://help.tableau.com/current/server/en-us/data_acceleration.htm">Data Acceleration</a> in the Tableau Server documentation.</p><p>In this post <strong>we will try to speed up a workbook with a live connection to a slow data source </strong>to verify the real performance benefits it introduces.</p><h3>Prerequisites</h3><p>Before using the Data Acceleration Python Client script you need the following:</p><ul><li>Tableau Server 2020.2+</li><li>An account with Tableau Server Administrator or Site Administrator role.</li><li>Optional (but recommended) increase the size of the Tableau Server external cache to 2 GB or larger. <br>Check your current Tableau Server external cache size setting:<br>tsm configuration get -k redis.max_memory_in_mb<br>Set the Tableau Server external cache size to 2 GB: <br>tsm configuration set -k redis.max_memory_in_mb -v 2048 <br>tsm pending-changes apply</li></ul><p>Download the <strong>source code</strong> from <a href="https://github.com/tableau/tableau-data-acceleration-client/releases">here</a> (you need Python 3.5+) and use the setup.py script to verify and install the dependencies:</p><ul><li>python-dateutil</li><li>PTable</li><li>tableauserverclient</li></ul><p>If you have already installed the Python Tableau Server Client (tableauserverclient) you can install manually the dependencies using <strong><em>pip</em></strong> pip install python-dateutil<br>pip install PTable</p><h3>How to change the authentication method</h3><p>Unfortunately, the current version of Tableau Server Data Acceleration Client (v0.1) supports only authentication using username and password.</p><p>Instead, for security reason, I recommend to use a Personal Access Token (PAT) as documented <a href="https://help.tableau.com/current/pro/desktop/en-us/useracct.htm#create-and-revoke-personal-access-tokens">here</a>, avoiding to sharing the credentials and insert username and password in the Python code.</p><h4>How can we solve this issue?</h4><p>Taking advantage of the fact that the Tableau Rest API <a href="https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_ref_authentication.htm#sign_in"><em>signin method</em></a> has a very similar request body, both when using Username and Password and when using a Personal Access Token, we may change easily the authentication method in the accelerate_workbooks.py script, replacing only a single line of code! Search for the <strong>sign_in_to_server</strong> method and change the python code as follow:</p><pre><em>#credentials_element = ET.SubElement(xml_request, &#39;credentials&#39;, name=username, password=password)<br></em>credentials_element = ET.SubElement(xml_request, <strong>&#39;credentials&#39;</strong>, personalAccessTokenName=username, personalAccessTokenSecret=password)</pre><p>Now, if we create a Personal access token with <em>Name = ACCELERATE</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*DZHOExpmPDZq5WyVY_USLA.png" /></figure><p>and try to sign in using this <strong>Token Name and Secret </strong>instead of username and password</p><pre><strong>python accelerate_workbooks.py --server &quot;</strong><a href="https://tableau-demo.ecohmedia.com/"><strong>https://myserver</strong></a><strong>&quot; --site &quot;DemoSite&quot; --username &quot;ACCELERATE&quot; --password &quot;vWsr0S75QVSSQ8LDHdxiTA==:YCP70XthyAPjnpuPzm3AmtNDLkQW5yPr&quot;</strong></pre><pre>path to ssl certificate (hit enter to ignore):</pre><pre>Signed in to <a href="https://tableau-demo.ecohmedia.com/">https://myserver</a> successfully</pre><p>… <strong>it works </strong>(hit enter to ignore the ssl certificate)!</p><p>To logout, we can use this command line:</p><pre><strong>python accelerate_workbooks.py --logout</strong></pre><h3>Accelerate a workbook with a live data source connection</h3><p>In this demo we try to to accelerate a Tableau Workbook with a live connection to a PostgreSQL database in cloud (Heroku Application Cloud). <br>Using the admin view <strong><em>Stats for Load Times, </em></strong>we see the dashboard has a load time of about 10 seconds:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-IZttRkiXX_mTWJfwlTMIw.png" /><figcaption>Workbook with a live data source — before acceleration (9.8 secs load time)</figcaption></figure><p>From now on we will check the Tableau Server Data Acceleration status using this command line</p><pre><strong>python accelerate_workbooks.py --status</strong></pre><pre>Workbook Acceleration is enabled for the following workbooks: None</pre><pre>Scheduled Tasks for Workbook Acceleration: None</pre><p>Currently no workbook is accelerated and no task for acceleration is scheduled.<br>We enable the first workbook for acceleration with this command</p><pre><strong>python accelerate_workbooks.py --enable &quot;Data Acceleration/Cloud Heroku LIVE&quot; --accelerate-now</strong></pre><pre>Workbooks Enabled<br>+-------------------------------------+<br>| Project/Workbook                    |<br>+-------------------------------------+<br>| Data Acceleration/Cloud Heroku LIVE |<br>+-------------------------------------+</pre><p>where</p><ul><li><em>Data Acceleration/Cloud Heroku LIVE</em> is the path of the workbook to speed up (Project/Workbook name)</li><li><em>accelerate-now</em> is on option, to submit a backgrounder pre-computation job during the enablement (on demand)</li></ul><p>Checking again the status, we have enabled the acceleration for this workbook and his background acceleration job has status <strong><em>in progress</em></strong></p><pre><strong>python accelerate_workbooks.py --status</strong></pre><pre>Workbook Acceleration is enabled for the following workbooks<br>+----------+-------------------------------------+------------+-----<br>| Site     | Project/Workbook                    | Status     | <br>+----------+-------------------------------------+------------+-----| DemoSite | Data Acceleration/Cloud Heroku LIVE | inProgress<strong> </strong>|              <br>+----------+-------------------------------------+------------+-----</pre><p>We can monitor the background job execution using both <strong><em>Tableau Server &gt; Jobs</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*U6vLHNY40if2pwIG1tu6Ow.png" /></figure><p>and the status command line</p><pre><strong>python accelerate_workbooks.py --status</strong></pre><pre>Workbook Acceleration is enabled for the following workbooks<br>+----------+-------------------------------------+-------------+----<br>| Site     | Project/Workbook                    | Status      | <br>+----------+-------------------------------------+-------------+----| DemoSite | Data Acceleration/Cloud Heroku LIVE | accelerated | <br>+----------+-------------------------------------+-------------+----</pre><pre>--------------------------+--------------------------+<br>Last Updated              | Task Running Time (Secs) |<br>--------------------------+--------------------------+<br>2021-02-09 19:06:05+01:00 |                     25.0 |<br>--------------------------+--------------------------+</pre><p>When the task is complete and the workbook has been accelerated, we test the acceleration benefits by opening the workbook multiple times and using the <strong><em>Stats for Load Times </em></strong>view. Now the average load time has significantly decreased to 0.2 seconds (compared to the previous 9.8 secs).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*bG7a-d0PEpUQIMmmaxfEzQ.png" /><figcaption>Workbook with live data source — after acceleration (8 accesses: 0.2 sec avg load time)</figcaption></figure><h3><strong>Why schedule acceleration?</strong></h3><p>Using again the status command, we can view the list of scheduled tasks for workbook acceleration:</p><pre>Scheduled Tasks for Workbook Acceleration<br>+-------------------------------------+----------+-------------+<br>| Project/Workbook                    | Schedule | Next Run At |<br>+-------------------------------------+----------+-------------+<br>| Data Acceleration/Cloud Heroku LIVE | *        |             |<br>+-------------------------------------+----------+-------------+<br>*The Workbook Acceleration views for these workbooks will be updated when they are published, or when their extract is refreshed.</pre><p>Keep in mind that Tableau Data Acceleration will monitor the relevant Tableau events that could potentially change the workbook’s data, such as:</p><ul><li>Workbook publishing</li><li>Extract refreshing (if the workbook has any)</li><li>Web authoring</li></ul><p>and pre-computation will be triggered after these events.</p><p>In this case we have a workbook with a live data connection, so no other event will be triggered and, after 720 minutes from the first acceleration Tableau Server will cleaned the data cache (where 720 mins is the default data cache lifetime). To avoid this, we need to create a Data Acceleration Schedule and associate the workbook to this one to maintain its data cache updated.</p><p>So let’s continue creating an acceleration schedule called “Schedule 2hh” that runs all days of the week, every 2 hours from 06:00 to 20:00, using the command</p><pre><strong>python accelerate_workbooks.py --create-schedule &quot;Schedule 2hh&quot; --hourly-interval 2 --start-hour 6 --end-hour 20</strong></pre><pre>Hourly schedule &quot;Schedule 2hh&quot; created with an interval of 2 hours.</pre><p>Note that, if we try to create an acceleration schedule with a frequency larger than the Tableau Server data cache lifetime (720 minutes by default), we’ll get a warning message because data acceleration will not be useful:</p><pre><strong>python accelerate_workbooks.py — create-schedule “Schedule USELESS” — daily-interval</strong></pre><pre>Daily schedule “Schedule USELESS” created to run at 00:00.</pre><pre>Warning: The recurrence interval of the given schedule is larger than VizQL server data refresh interval of 720 minutes.</pre><p>We can view the data acceleration schedules using the command <strong><em>show-schedule</em></strong></p><pre><strong>python accelerate_workbooks.py --show-schedule</strong></pre><pre>Data Acceleration Schedule<br>+--------------+---------------------------+<br>| Name         | Next Run At               |<br>+--------------+---------------------------+<br>| Schedule 2hh | 2021-02-11 14:00:00+01:00 |<br>+--------------+---------------------------+</pre><p>or directly on <strong><em>Tableau Server &gt; Schedules </em></strong><em>(</em>where there is an <strong><em>Edit Settings </em></strong>button but it doesn’t run!)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*NmaY_eM2vIx-g3B7s41P9g.png" /></figure><p>As a last step we’ll use the command <strong><em>add-to-schedule</em></strong> to add our workbook to the acceleration schedule and check again the status to verify that everything runs correctly:</p><pre><strong>python accelerate_workbooks.py --add-to-schedule &quot;Schedule 2hh&quot; &quot;Data Acceleration/Cloud Heroku LIVE&quot;</strong></pre><pre>Workbooks added to schedule<br>+-------------------------------------+--------------+<br>| Project/Workbook                    | Schedules    |<br>+-------------------------------------+--------------+<br>| Data Acceleration/Cloud Heroku LIVE | Schedule 2hh |<br>+-------------------------------------+--------------+</pre><pre><strong>python accelerate_workbooks.py --status</strong></pre><pre>Scheduled Tasks for Workbook Acceleration<br>+-------------------------------------+--------------+-------------<br>| Project/Workbook                    | Schedule     | Next Run At <br>+-------------------------------------+--------------+-------------<br>| Data Acceleration/Cloud Heroku LIVE | Schedule 2hh | 2021-03-31 <br>+-------------------------------------+--------------+-------------</pre><p>Using the <strong><em>Tableau Server &gt; Jobs </em></strong>page we’ll be able to monitor the acceleration job execution every two hours:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*jrn356BoRQ9vuopP8W9cog.png" /></figure><h3>Conclusion</h3><p><em>The initial loading time of a web page is one of the factors that most influence the user experience, so the “spinning wheel” for countless seconds when we try to view a dashboard on Tableau Server has a very poor impact.</em></p><p><em>Tableau Server Data Acceleration enable workbooks loading faster because pre-computes the workbook’s data in a background process (fetching the data needed after connecting to the underlying data source) as long as there are no RLU filters or time functions as Now() and Today().</em></p><p><em>But Data Acceleration is not a solution when we create dashboards not optimized, for example composed of dozens of worksheets. In this case a suggestion is following the guidelines in </em><a href="https://help.tableau.com/current/pro/desktop/en-us/perf_visualization.htm"><em>this topic</em></a><em> to improve the speed of your visualizations.</em></p><p><em>If you need further info just reach out to me on </em><a href="https://www.linkedin.com/in/pietrogentini/"><em>LinkedIn </em></a><em>or </em><a href="https://twitter.com/EcohMediaBIEPM"><em>Twitter</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5db1bf0fc89b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tableau-server-insights-blog/testing-tableau-server-data-acceleration-5db1bf0fc89b">Testing Tableau Server Data Acceleration</a> was originally published in <a href="https://medium.com/tableau-server-insights-blog">Tableau Server Insights Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to run Flows on Tableau Server/Online using Tableau Server Client (Python) without Data…]]></title>
            <link>https://medium.com/tableau-server-insights-blog/how-to-run-flows-on-tableau-server-online-using-tableau-server-client-python-without-data-48268d7e7c85?source=rss----f133ff3d8557---4</link>
            <guid isPermaLink="false">https://medium.com/p/48268d7e7c85</guid>
            <category><![CDATA[tableau-server]]></category>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[tableau-prep]]></category>
            <dc:creator><![CDATA[Pietro Gentini]]></dc:creator>
            <pubDate>Fri, 12 Mar 2021 12:10:07 GMT</pubDate>
            <atom:updated>2023-10-05T12:29:45.776Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to run Prep Flows on Tableau Server/Online using Tableau REST API</h3><p><em>Starting from version 2020.4.1 the Data Management Add-on is no longer required to publish your flows to Tableau Server or Tableau Online or run flows manually on the web. </em><strong><em>However you need Tableau Data Management Add-on with Tableau Prep Conductor enabled to run your flows on a schedule o using Rest API </em></strong><em>(</em><a href="https://help.tableau.com/current/prep/en-us/prep_conductor_overview.htm"><em>https://help.tableau.com/current/prep/en-us/prep_conductor_overview.htm</em></a><em>).</em></p><figure><img alt="How to run Flows on Tableau Server/Online using Tableau Server Client (Python) without Data Management Add-on" src="https://cdn-images-1.medium.com/max/1017/1*dXRcGPrgzGUlP9ECNvhcaQ.png" /></figure><p>If you have at least a Creator role, you can edit or publish flows on Tableau Server or Tableau Online and run flows manually, only one flow at a time. <br>With Tableau Data Management you have Tableau Prep Conductor to run flows on a schedule. But you have also the capability to orchestrate your Prep flows execution using <strong><em>Tableau REST APIs.</em></strong></p><h3>Install Tableau Server Client (TSC)</h3><p>In this story we’ll use the Tableau Server Client (TSC), a Python library for the Tableau Server REST API, to achive this.</p><p>Documentation and software about TSC are available here:</p><p><a href="https://tableau.github.io/server-client-python/docs/">Get Started</a></p><p>TSC requires Python 3.5 or later to run and we can install TSC using pip from command line. <br>This command install (or upgrade) the latest stable version of TSC:</p><pre>pip install --upgrade tableauserverclient</pre><h3>Authenticate using a Personal Access Token (PAT)</h3><p>To connect securely to Tableau Server or Tableau Online by Rest APIs, the best practice is to use a Personal Access Token (PAT), avoiding to insert your username and password in the Python code. <br>Under your Tableau account settings, create a new Personal Access Token with Token Name <strong><em>TSC </em></strong>and copy the Token Secret to clipboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XgAJ67WpWac6bwjKT02gNg.png" /></figure><h3>Create a sample Python App to refresh the flow</h3><p>Using the <strong><em>tableauserverclient, </em></strong>create a connection to your Tableau Server. Remember to use the attribute <strong><em>use_server_version=True</em> </strong>to make sure to use the latest version of the REST API supported by the instance of Tableau Server or Tableau Online you are connecting to Flow methods are supported with API version 3.3 and later).</p><pre><strong>import </strong>tableauserverclient <strong>as </strong>TSC<br><br>server = TSC.Server(<strong>&#39;https://mytableauserver.com&#39;</strong>,use_server_version=<strong>True</strong>)<br>print(<strong>&quot;Rest API version:&quot;</strong>, server.version)</pre><p>Initialize a <strong><em>PersonalAccessTokenAuth</em></strong> instance using the Token Name, the Token Secret and the site_id you want to connect, where the <strong><em>site_id</em></strong> is the portion of the URL that follows the /site/ string. For the default site on Tableau Server you can use an empty string &#39;&#39; (with single quotes, no spaces).</p><pre>tableau_auth = TSC.PersonalAccessTokenAuth(<strong>&#39;TSC&#39;</strong>, <strong>&#39;oe4S0kYrQfaVAatBFupHVg==:DmCHTwgrTqhkiWnU0yW2EURhNBhZmKkE&#39;</strong>, <strong>&#39;DemoSite&#39;</strong>)</pre><p>Use the <strong><em>server.auth.sign_in()</em> </strong>method to authenticate, and the <strong><em>server.flows.get</em>() </strong>method to get the flow names and ids list (this method maps the Rest API endpoint <strong>Query Flows for a site </strong><a href="https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_ref_flow.htm#query_flows_for_site">https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_ref_flow.htm#query_flows_for_site</a>)</p><pre><strong>with </strong>server.auth.sign_in(tableau_auth):<br>    all_flow_items, pagination_item = server.flows.get()<br>    print(<strong>&quot;There are {} flows on site:&quot; </strong>.format(pagination_item.total_available))<br>    print([[flow.id, flow.name] <strong>for </strong>flow <strong>in </strong>all_flow_items])</pre><p>My Tableau Server has two demo flows in this site, the result will be:</p><p><strong><em>Rest API version: 3.10<br>There are 2 flows on site: <br>[[‘13636115–5f03–4d53-aa23-be8b20b6c9cc’, ‘flow demo’], [‘0c101e08-e3af-4fda-bbe1-b75d8d6ed997’, ‘flow demo 2’]]</em></strong></p><p>To execute every flow in list, create a loop and use the <strong><em>server.flows.refresh()</em></strong> method (this method maps the Rest API endpoint <strong>Run Flow Now </strong><a href="https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_ref_flow.htm#run_flow_now">https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_ref_flow.htm#run_flow_now</a><strong>)</strong></p><pre><strong>for </strong>flow <strong>in </strong>all_flow_items:<br>    print(<strong>&#39;Run Flow&#39;</strong>, flow.name, <strong>&#39;Now&#39;</strong>)<br>    # <em>run the flow and get the JobItem</em><br>    job = server.flows.refresh(flow)</pre><p>You can monitor every job execution using, for example, a polling utility to wait for a function to return when the specified condition is met. <br>In this example we use the Python <a href="https://pypi.org/project/polling2/"><strong><em>polling2 </em></strong></a>utility, to test every 30 seconds (<em>step=30</em>) the <strong><em>finish_code</em></strong> attribute of the <strong><em>JobItem </em></strong>instance returned by the method <strong><em>server.jobs.get_by_id(job.id).</em></strong><br><strong><em>finish_code</em></strong> indicates the current status of the job and may assume the value: -1 for pending/in progress, 0 for success, 1 for error or 2 for cancelled.<br>The polling execution will ends with finish_code different from -1.</p><pre># job completion status types<br>job_status = [<strong>&quot;Success&quot;</strong>, <strong>&quot;Failed&quot;</strong>, <strong>&quot;Cancelled&quot;</strong>]<br># loop until job is in pending/in progress status<br>polling2.poll(<strong>lambda</strong>: server.jobs.get_by_id(job.id).finish_code != -1, step=30, poll_forever=<strong>True</strong>)<br># print the completion status<br>print(<strong>&#39;Job finished with status: &#39; </strong>+ job_status[int(server.jobs.get_by_id(job.id).finish_code)])</pre><p>If successful the result will be:</p><p><strong><em>Run Flow “flow demo” Now<br>Job finished with status: Success<br>Run Flow “flow demo 2” Now<br>Job finished with status: Success</em></strong></p><p>At this point, you should have everything you need to run and monitor programmatically your Tableau Prep flows execution.</p><h3>Conclusion</h3><p><em>If you extensively use Tableau Prep to manage data preparation processes in your organization, the adoption of Tableau Data Management Add-on is recommended to orchestrate your flows on a schedule. <br>But if you need to run Prep Flows programmatically, e.g. after data loading or in a service integration flow, you can create a script to run and monitor your flows. Using Tableau Server Client you need only few lines of Python code but, obviously, you can use REST APIs with any other programming language or integration service platform.</em></p><p><em>If you need further info just reach out to me on </em><a href="https://www.linkedin.com/in/pietrogentini/"><em>LinkedIn</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48268d7e7c85" width="1" height="1" alt=""><hr><p><a href="https://medium.com/tableau-server-insights-blog/how-to-run-flows-on-tableau-server-online-using-tableau-server-client-python-without-data-48268d7e7c85">How to run Flows on Tableau Server/Online using Tableau Server Client (Python) without Data…</a> was originally published in <a href="https://medium.com/tableau-server-insights-blog">Tableau Server Insights Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>