Skip to main content

Hello All,

 

I have a script where i am checking which sheets have data and which do not.

 

let worksheetArray = tableauViz.getWorkbook().getActiveSheet().getWorksheets();

let promises = worksheetArray.map(function(worksheet){

  return worksheet.getSummaryDataAsync({maxRows: 1}).then(function(table) {

    console.log(table.getData());

  }).otherwise(function(err){

    console.log(err);

  });

});

Promise.all(promises);

 

this results in a error, please find the attaches screenshot "Uncaught TypeError: Cannot read property 'toString' of undefined"

 

This was working in earlier versions of tableau.

 

Any help on how i can fix this, would be great. Thanks.

1 件の回答
  1. 2020年6月24日 12:05

    Hi All,

     

    For anyone stumbling on this post. We upgraded the tableau server to 2020.2.2 and issue is fixed. Looks like it was issue specific to version 2020.2.1

     

    Thanks.

0/9000