Error "Read callback 'GetHtml' failed" upon opening analysis in TIBCO Spotfire Web Player

Error "Read callback 'GetHtml' failed" upon opening analysis in TIBCO Spotfire Web Player

book

Article ID: KB0075081

calendar_today

Updated On:

Products Versions
Spotfire Web Player 10.3

Description

When opening certain analysis files with TextArea visualizations in the TIBCO Spotfire Web Player, the below error may be seen:

Spotfire.Dxp.Web.Resources.App_Data.Scripts.WebView.js:41 Read callback 'GetHtml' failed
Type: TypeError
Message: Cannot read property 'replace' of undefined
Stacktrace: TypeError: Cannot read property 'replace' of undefined
    at y (https://<spotfire-server>/spotfire/wp/render/d7-j-Mht9a_NlkYQKF/Spotfire.Dxp.Web.Resources.App_Data.Scripts.WebView.js:22:1503)
    at Function.css (https://<spotfire-server>/spotfire/wp/render/d7-j-Mht9a_NlkYQKF/Spotfire.Dxp.Web.Resources.App_Data.Scripts.WebView.js:22:59822)
    at i.fn.init.<anonymous> (https://<spotfire-server>/spotfire/wp/render/d7-j-Mht9a_NlkYQKF/Spotfire.Dxp.Web.Resources.App_Data.Scripts.WebView.js:22:61253)
    at p (https://<spotfire-server>/spotfire/wp/render/d7-j-Mht9a_NlkYQKF/Spotfire.Dxp.Web.Resources.App_Data.Scripts.WebView.js:22:43749)
    at i.fn.init.css (https://<spotfire-server>/spotfire/wp/render/d7-j-
    ...

    

Issue/Introduction

This article explains the reason for the error Read callback 'GetHtml' failed" and how to resolve it

Resolution

These errors may be seen if there are any Filters, Property Controls or Dynamic items in the TextArea visualization but have been commented out. For example when you right click on a text area and choose "Edit HTML" you will see below commented out HTML:
<!--<SpotfireControl id="83a089880cda49478e5ebd0d111d81fd" />-->
Though these controls in the TextArea visualization are commented, Spotfire still tries to render these controls but fails as the respective DOM elements are not present and thus causing the error.

To resolve the issue, remove the commented out controls from the TextArea visualization and save the analysis file or upgrade to Spotfire versions 10.4 and higher.