Change in SummaryDataAsync when no data in sheet behavior changed
See original GitHub issueHi guys,
Below piece of code was working perfect until recent updates to the extensions API. This behavior is taking place on Tableau Server and not on Desktop.
What we discovered recently? When there is no summary data found in the sheet we normally would get an object with rows (0) and columns (0) meaning there is no data found in the sheet. But now we do not get anything anymore resulting in a crash and very ugly error message on server when certain filters or dashboard actions result in a empty sheet (which provides data to the extension). The ‘then’ in below example is not returning a single thing.
return settings.selectedSheet .getSummaryDataAsync() .then(({ columns, data: rows }) => { if (columns.length === 0 && rows.length === 0) { throw new Error( "Summary data is empty. A filter is probably excluding all data." ); } });
Can you have a look at this please?
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
@SiebeG - Thank you for the clarification. I did some research and found that the fix didn’t get integrated into online until the 2020.3 staging. That is coming out soon. Sorry for the confusion. I’ll update the fixes and timeline here:
getSummaryData fails when there is no data has been fixed in:
getSummaryData has a limit of 10,000 rows has been fixed in:
John
Following this thread.
No data in the datasheet is not an error and can be a planned action. That’s why we created a humane message. Throwing an error confuses the dashboard users.