Hi,
I set up a workflow to audit a Tableau .twb file. I got the idea after reading this post but found that that macro didn't quite get me the output I was looking for. Being new to XML and RegEx, this current version took me quite a few brain cycles and I suspect there are multiple ways to improve it, which is why I'm attaching it here. It works, but there may be ways to arrive at the same (or better) results with fewer or more robust/elegant steps. :-)
What it does:
What it doesn't do (yet):
If this module works for as-is, feel free to use it. If there are things I can do to it to make it run better/easier, I'm open to all feedback. :-)
When I download and run the latest version, 'TWB_AUDIT (Working Version).yxzp', posted by jusdespommes on 1-4-19, it runs successfully (pointed to the 'SampleWB.twb' file). When I try adding one or more of my twb files to the same directory, I get the errors shown below. There seems to be some difference with the twb files, but not sure what (perhaps created with different Tableau versions)? Any ideas from anyone?
I just resolved this error using the instructions in this post. Hope it helps.
Reiterating for text searches:
The cause of the errors ["the field schema for the output changed between iterations” ] is that the number of columns or names of column headers (thus, the schema) are different between iterations.
You could fix this by
1. Open your macro
2. Select your Macro Output tool
3. on the Interface Designer panel, click on the Properties icon
4. Update the Output Mode to 'Auto Configure by Name'
The results will then be 'unioned'
Thrilled to find this workflow as I am looking for some ways to document a bunch of fairly complex Tableau Dashboards with numerous worksheets and calculated fields.
Great work, guys!!
Hi Karthik,
I was also looking to do the same, but with little success. I have quite a few Dashboards and multiple worksheets, keen to know how to unravel the xml.
Would be great if you can share some pointers.
Regards
Viv
So I think I am late to the party here, but this is exactly what I am looking for. Thank you! I do have one question:
What are the regex tools doing? Just looking for any number 1-6 in the name field, and using that as connection id?
Hello @jusdespommes . I know this was several years ago, but I am trying to use the workflow you put together and running into an issue.
It seems that the macro cannot find the correct field names sometimes, and just replaces them with the datasource name. I can' seem to find the spot in the macro that does this. Any chance you can help out?