tableau / js-api-samples

Sample code for the Tableau JavaScript API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extension API crashes while extracting worksheet data

mohit-rana85 opened this issue · comments

I am facing an issue related to tableau extension api. The api fails while extracting the worksheet data by using the methods getSummaryColumnsInfoAsync or getSummaryDataAsync.

Code:
await worksheet.getSummaryColumnsInfoAsync().then(async colNames => {
para1ColId = colNames.find(col => col.fieldName.toLowerCase() === 'para1').fieldId;
para2ColId = colNames.find(col => col.fieldName.toLowerCase() === 'para2').fieldId;
});

Error; Cannot read property 'fieldId' of undefined

In the debugging mode: Chromium shows an error: Debugging connection was closed. Reason: WebSocket disconnected.

Tableau desktop version 2021.1
Extension version: https://extensions.tableauusercontent.com/resources/tableau.extensions.1.latest.js or https://extensions.tableauusercontent.com/resources/tableau.extensions.1.latest.min.js