KNOWLEDGE BASE

Error "[Cannot read properties of null (reading 'width')]" When Viewing Viz Embedded in Salesforces Using Lightning Web Component


Published: 20 Jan 2023
Last Modified Date: 01 Feb 2023

Issue

When attempting to look at a view embedded in Salesforce via the lightning web component, the following error occurs:

[Cannot read properties of null (reading 'width')]
bF.handleVizLoad()@https://DOMAIN.lightning.force.com/resource/1618955309000/tab_TableauJSAPI:8:102473
b.$4()@https://DOMAIN.lightning.force.com/resource/1618955309000/tab__TableauJSAPI:8:51736
b.$1()https://DOMAIN.lightning.force.com/resource/1618955309000/tab__TableauJSAPI:8:50734
Object.delegate()@https://DOMAIN.lightning.force.com/resource/1618955309000/tab__TableauJSAPI:4:17756

Environment

  • Tableau Cloud
  • Tableau Server
  • Salesforce Embedded View
  • Lightning Web Component

Resolution

To workaround this issue, establish a Tableau session in another tab and reload the page as described here:
  1. Open a new tab
  2. Login to Tableau Cloud or Tableau Server 
NOTE: There are no workarounds for the Salesforce Mobile app at this time.  

Cause

The issue is being investigated by the Tableau Development team under Known Issue ID 1497952.  
Did this article resolve the issue?