-
1. Re: Tableau Tutorial WDC help
Brendan LeeDec 8, 2017 1:49 PM (in response to Arthur Tsao)
1 of 1 people found this helpfulHey Arthur,
In order to connect to a WDC from Tableau, it must be served from a web server. Using a local file path (i.e. "C:/Users/arthur...") is something we don't allow to happen for security reasons.In the "Get Started" section, right before the tutorial, there is some instructions on how to setup a local web server and connect to it (it's WAY easier than it sounds, just a few steps). These instructions are in the context of the simulator, but connecting via Tableau is the same process (which isn't super clear from that page unfortunately). But after you've followed all the Get Started instructions, you'll be able to use a url in Tableau like "localhost:8888/
Examples/html/earthquakeUSGS.html".
Hope that helps,
Brendan
-
2. Re: Tableau Tutorial WDC help
Arthur Tsao Dec 8, 2017 1:56 PM (in response to Brendan Lee)Thanks for the quick reply. So I did set up my simulator.
http://localhost:8888/Simulator/index.html
With the URL wanting to connect below.
/earthquakeWDC.html
I tried a few different iterations, but didn't get it to work. How should I be inputting the URL?
-
3. Re: Tableau Tutorial WDC help
Arthur Tsao Dec 8, 2017 1:59 PM (in response to Brendan Lee)1 of 1 people found this helpful -
4. Re: Tableau Tutorial WDC help
Arthur Tsao Dec 8, 2017 2:04 PM (in response to Brendan Lee)Sorry for the spam.
I tried running it and I get thrown this error: Error creating object for class TableInfo. The input data for one of the contained objects is invalid. Error creating object for class ColumnInfo. Error: Unknown Data Type.
I followed all the steps on the tutorial. Any ideas?
-
5. Re: Tableau Tutorial WDC help
Brendan LeeDec 8, 2017 2:11 PM (in response to Arthur Tsao)
1 of 1 people found this helpfulHmmm, hard to say without seeing the code.
The tutorial walks you through creating something similar to the earthquakeUSGS.html example in the Examples folder of the SDK. You could try comparing the tutorial code you ended up with to that finished example to see where things might be slightly different.You would connect to that example with the url: http://localhost:8888/Examples/html/earthquakeUSGS.html.
-
-
7. Re: Tableau Tutorial WDC help
Brendan LeeDec 8, 2017 2:28 PM (in response to Arthur Tsao)
Hmm, that is a bit odd that you aren't able to get the sample to work. I just downloaded the latest SDK on github and everything is working find on my end. A few clarifications:
- Is the error you are seeing in Tableau or in the Simulator? If Tableau, which version?
- Did you recently download the SDK from github?
-
8. Re: Tableau Tutorial WDC help
Arthur Tsao Dec 8, 2017 2:32 PM (in response to Brendan Lee)I'm getting the error in Tableau.
Tableau version 10.3
Yes, recently downloaded SDK from github.
My hunch is that its potentially version? If the sample one doesn't work.
Not sure when we are going to roll out 10.4. Still a little weird that it throws errors between 10.3 and 10.4 (potentially). Will an update like that throw many errors?
-
9. Re: Tableau Tutorial WDC help
Brendan LeeDec 8, 2017 2:42 PM (in response to Arthur Tsao)
1 of 1 people found this helpfulYour hunch is correct, the issue here is that the WDC library you are using is version 2.3.0, and the sample you are using is trying to take advantage of a feature that was related in 10.4 (support for the geometry datatype).
There should've been an error message suggesting this, but perhaps the other error message you saw was hit first.
The fix for this is just to change the version of the WDC library you are using. In your html page, just change the connectors.tableau.com/libs/tableauwdc-2.3.latest.js to https://connectors.tableau.com/libs/tableauwdc-2.2.latest.js and it should work correctly.
-
10. Re: Tableau Tutorial WDC help
Arthur Tsao Dec 8, 2017 2:52 PM (in response to Brendan Lee)Still have the same error after changing to 2.2.
Is there anything else I need to change?
-
11. Re: Tableau Tutorial WDC help
Arthur Tsao Dec 8, 2017 2:59 PM (in response to Brendan Lee)I'm testing it and I see on chrome console: "Data type can't be blank" as I try to click star interactive phase.
Should I be removing the geometry column?
-
12. Re: Tableau Tutorial WDC help
Brendan LeeDec 8, 2017 3:32 PM (in response to Arthur Tsao)
1 of 1 people found this helpfulAh sorry I spoke too soon, you're right that it's the geometry data type that is causing the issue. In addition to rolling back to version 2.2, you'll need to update the js just slightly to not use that geometry type.
I'd recommend just taking an old version of the sample code. Like this one:
-
13. Re: Tableau Tutorial WDC help
Arthur Tsao Dec 11, 2017 7:58 AM (in response to Brendan Lee)This worked! I made those changes.
Hopefully won't run into any more problems
Thanks for the help Brendan!
-
14. Re: Tableau Tutorial WDC help
Brendan LeeDec 11, 2017 9:21 AM (in response to Arthur Tsao)
Awesome! Glad to hear it is working now.