title: Tableau Filtering Error
body: <p>I am attempting to use the JavaScript API to configure a default filter selection state.  Here is the code I am using for this example:</p>
  
  <pre><code>$(function() {
    var placeholderDiv = document.getElementById("tableauViz");
    var url = "https://sometableausite/t/Tableau_Dev/views/MyPath/HomeDashboard?:embed=y&amp;:showShareOptions=true&amp;:display_count=no&amp;:showVizHome=no";
    var options = {
       hideTabs: false,
       width: "100%",
       height: "1552px",
       onFirstInteractive: function() {
          var worksheet;
  
  
          var filtersVal='';
          var onSuccess = function (filters) {
              console.log("This worksheet has " + filters.length + " filter(s) associated with it.");
              $.each(filters, function (filter, i) {
                  // use .value property of each DataValue object
                  filtersVal += i.getFieldName() + ", ";
                  console.log(filtersVal);
              });
          };
  
          var onError = function (err) {
              console.log(err);
          };
  
          viz.getWorkbook().activateSheetAsync("Performance").then(function(sheet) {
              worksheet = sheet;
              worksheet.getWorksheets()[0].getFiltersAsync().then(onSuccess, onError);
          });        
       }
    };
  
    var viz = new tableau.Viz(placeholderDiv, url, options);  
  });
  </code></pre>
  
  <p>This is just trying to get the available filter options at this point but I am getting a 500 server error and getting kicked into the onError call when calling worksheet.getWorksheets()[0].getFiltersAsync().</p>
  
  <p>Here is the error returned:</p>
  
  <p>POST to <a href="https://sometableausite/vizql/t/Tableau_Dev/w/MyPath/v/HomeDashboard/sessions/E49DB48C495E4A858821B95F95AEFB20-0:2/commands/tabsrv/get-filter-info" rel="nofollow">https://sometableausite/vizql/t/Tableau_Dev/w/MyPath/v/HomeDashboard/sessions/E49DB48C495E4A858821B95F95AEFB20-0:2/commands/tabsrv/get-filter-info</a></p>
  
  <p>gives a 500 server error.</p>
  
  <p>TableauException&#x3a; INTERNAL ERROR
  <br>
  2016-06-22 19&#x3a;27&#x3a;53.350
  &#x28;V2rmuQrmAA0AAEGQy60AAALP,0,2&#x29;</p>
  
  <p>What can I do to get the list of filters available?</p>