I published a workbook and connected it to a refreshed version of a data source; now it treats every calculated field like something that should be in the data source and throws up an error that it isn't present. How can I keep this from happening so I don't have to recreate the entire workbook just to update the data connection?
#Tableau Desktop & Web Authoring
This issue is likely to arise when the name or structure of the original fields that your calculated field depends on has changed in the updated version of the data source, or if there was a problem with how the data source was replaced.
Solutions
First, checking for changes in the data source structure is the most crucial step.
- Verify if there are any changes between the new and old data sources in the name, data type, and the table name (if multiple tables are joined) of the underlying fields that your calculated field references.
- If field names have changed, it is highly likely that this is the root cause of the problem.
Correctly Use "Replace Data Source" in Tableau Desktop
The most common way to update the connection without recreating the entire workbook is to use the "Replace Data Source" feature.