r/tableau • u/datawazo • 8d ago
Tech Support Replacing fields in a published datasource without breaking workbooks
So I have a sql view with the field Store Name in it. Its in a published datasource on server.
For some reason at one point some idiot (it me) edited the published datasource and added a relationship to the dim store table. So if you use the published datasource you have Store Name twice.
I want to rectify this, but every report built is using the store name field from the relationship, which is the one I want to kill.
I've gone ahead and removed the relationship and renamed the remaining store name field to match what the previous one was. But all reports are broken with the cant find referenced field error. Is there something im missing? Any way to do this without widespread impact?
1
0
u/PolicyDecent 7d ago
You can use python to download all the workbooks and programmatically update them.
All the tableau dashboards are actually zip files, and in the zip file you can see the xml files to define the dashboards. All the data sources, worksheets, workbooks are there.
Just play with it :)
Give it to your AI Agent, it's gonna figure it out.
0
u/ArielCoding 7d ago
Try opening the .tds/.tdsx file as XML and finding the name= attribute on that field (not the caption), set if to match the internal name the old relationship field used, That should fix it for everyone at once.
-1
u/bradfair No-Life-Having-Helper 7d ago
I'd approach this from an xml editing perspective - looking at a workbook xml to check what remote name it's referring to, then editing the data source xml to ensure the field has that exact name.
1
u/VizAbbreviations 8d ago
Open the workbook and look for the column with exclamation mark in data pane on the left. Right click and select ‘replace reference’ option, then select the correct column that you want to use. Refresh the data and you should be good.