Skip to main content

Tableau Data Pipelines

The Tableau Data Pipelines feature adds the Publish to Tableau step to the Orchard Core Data Pipelines. The step publishes the rows of any source, such as Speech Insights or a Read a data source step, to a Tableau Cloud data source. The first run publishes the data source. The next runs change its rows in place and send only the rows that changed, so that the workbooks and the calculated fields that use the data source continue to work. The step keeps one row per key, so a row that a pipeline sends again replaces the row in Tableau and is never added twice.

The feature does not depend on Speech Insights. Any module that gives rows to a data pipeline can send them to Tableau with this step.

Enable the features​

Admin display nameFeature IDAdds
Tableau CloudCloudSolutions.TableauThe Settings > Tableau Cloud page and the services that publish Tableau data sources. It is enabled with the features that need it.
Tableau Data PipelinesCloudSolutions.Tableau.DataPipelinesThe Publish to Tableau step. It enables Tableau Cloud and Data Pipelines.

The step publishes with the Tableau Cloud connection of the site. To set up the Connected App and the connection, see Configure Tableau Cloud for API access and Configure WinnerWare.

Upgrade

Before this feature, the Speech Insights - Tableau Export feature added the Publish to Tableau step. On a tenant that has that feature and Data Pipelines, the Tableau Data Pipelines feature is enabled once, automatically, so that the pipelines keep the step. The pipelines, their settings and their state do not change.

Publish to Tableau​

SettingDescription
Tableau projectThe top-level Tableau project, such as the project of the client. It is created when it doesn't exist.
Tableau subfolderThe nested project that receives the data source, such as Data Sources. Separate more levels with /. Leave it empty to publish to the project itself.
Data source nameThe name of the Tableau data source. The first run publishes it, and replaces a data source with this name in the project. The next runs change its rows in place.
Key fieldSelect the field that identifies a row. The list has None and the fields that identify a record of the input, such as Interview ID or Transcript ID. A new step starts with that field. When the source marks no field as an identifier, such as a query or a file, the list has None and every field: choose the field that has a different value in each row. When the rows link two records, such as the tags of the transcripts, the list has only None. With a key field, each run sends only the rows that were added, changed or removed. With None, each run sends every row again.
Keep the rows that a run doesn't sendSelect it when the source reads only the new or changed rows, such as a Read a data source step that reads only new rows. Each row replaces the row with its key or is added, and no row is deleted. Clear it (the default) when each run reads every row: a row that a run doesn't send is then deleted from Tableau. It needs a key field. You can change it after the first publish.
Tableau columnsOne row per input field: whether to Publish it, its Tableau name and its Tableau type (text, whole number, decimal number, true or false, date, date and time). The first time, every field except the change type field is published, named with its label, with the type that matches the field. The columns are in this order in the data source.

How the step updates the data source​

The first run publishes the data source with every row. The next runs do not publish it again: they change its rows in place with the Tableau update API. The data source keeps its identifier, its permissions, and what users made on it in Tableau, such as calculated fields, so the workbooks that use it continue to work.

  • When the rows are a snapshot, they are every row of the data source. The rows of a Read a data source step, and other rows without the change type field, are a snapshot.
    • With a key field, the step compares each row with the row that it sent last time for the same key. It sends only the rows that were added or changed, and deletes the rows whose key is not in the run. When no row changed, it sends nothing.
    • Without a key field, the step replaces every row of the data source with the rows of the run, in place.
  • A snapshot keeps one row per key: a later row with the same key, such as a row that a join repeats, is not published. A row without a key value is not published either.
  • When the rows are changes, the step deletes the rows of the data source that have the keys of the changed and deleted rows, then adds the changed rows. The last change of a key wins. When there are no changes, the step sends nothing.
  • With Keep the rows that a run doesn't send, each row replaces the row with its key or is added. The rows that the run doesn't send stay.
  • A change that is sent again, such as after a failed run, replaces the same row. So a run that fails after it sent some rows does no harm: the next run sends these rows again.

Tableau Cloud accepts an update file of at most 100 MB. So the step sends a large number of rows in several updates, and Tableau applies each update by itself. While a run sends many rows, such as a replace of every row, Tableau can show some of the new rows before the others.

The step publishes the data source again only in these cases:

  • The first run, and the run after Start over.
  • The columns that the step sends changed, such as a field of another type. The run log shows a warning. With Keep the rows that a run doesn't send, the run fails instead and asks for Start over, because a new publish would remove the rows that the run doesn't send.

A new publish replaces what users made on the data source in Tableau, such as calculated fields.

Without a key field, each run sends every row again, and a row that the input repeats is published more than once. The designer shows a warning when the step has no key field, or when the key field is not one of the Tableau columns.

Upgrade

A data source that an earlier version of the step published has no rows to compare with. Its next run replaces its rows in place once. The runs after it send only the rows that changed.

Send changes​

A source that reads only the changed records keeps a large data source up to date without publishing every row on each run. Its rows have a ChangeType field with one of these values:

ValueMeaning
SnapshotThe row is one of every record. The first run, and the run after Start over, send every record as a snapshot.
ChangedThe record was created or changed. Its row replaces the row with the same key, or is added.
DeletedThe record was deleted. The row with the same key is removed. Only the key field needs a value.

The Read interview changes step of Surveys and the Read transcript changes step of Speech Insights give these rows. A module that adds such a step to its own data sets the ChangeType field with these values, and marks its key field as an identifier, so that the Publish to Tableau editor starts with it.

The step uses the ChangeType field by itself when its input has it, so there is no setting to choose.

warning

Do not rename or remove ChangeType with a Select fields step between the source and Publish to Tableau. Without that field, the step takes the rows of each run as every row, and deletes from Tableau the rows that the run doesn't receive.

Changes need a data source that the step published. Changes before the first publish, or changes for columns that differ from the published data source, fail and ask for Start over.

Locked settings​

Once the step published the data source, the editor locks the Tableau target (project, subfolder, data source name), the key field and the columns: the next runs send their changes to the same data source with the same columns. To change them, use Start over, in the Actions menu of the pipeline: the editor unlocks, and the next run publishes the data source again with every row. Keep the rows that a run doesn't send is not locked.

A field that is added to the source later is not published until it is added to the columns, after Start over. A value that can't be converted to the Tableau type of its column is empty.

Permissions​

PermissionDescription
Publish data to Tableau Cloud with the data pipelines (PublishToTableau)The user who publishes a pipeline with a Publish to Tableau step needs it. Manage Tableau Export Pipelines includes it.
Manage Tableau Cloud Settings (ManageTableauSettings)Configure the Tableau Cloud connection of the site.