Analysis loads in TIBCO Spotfire with error 'Read callback 'InitializeFilters' failed.'

Analysis loads in TIBCO Spotfire with error 'Read callback 'InitializeFilters' failed.'

book

Article ID: KB0076343

calendar_today

Updated On:

Products Versions
Spotfire Server 10.0 and higher

Description

In TIBCO Spotfire Analyst or TIBCO Spotfire Web Player, loading an analysis with filter control in a Text Area might throw an error like:

Read callback 'InitializeFilters' failed.
Type: TypeError
Message: Cannot read property 'left' of undefined
Stacktrace: TypeError: Cannot read property 'left' of undefined
    at bi (http://localhost:8000/?package=js:41:1593474)
    at fr (http://localhost:8000/?package=js:41:1593774)
    at a (http://localhost:8000/?package=js:41:1594290)
    at r.ui [as update] (http://localhost:8000/?package=js:41:1596332)
    at Object.create (http://localhost:8000/?package=js:41:1597019)
    at eval (eval at evaluate (http://localhost:8000/?package=js:41:404615), <anonymous>:1:170)
    at eval (<anonymous>)
    at Object.evaluate (http://localhost:8000/?package=js:41:404615)
    at Object.<anonymous> (http://localhost:8000/?package=js:41:3316612)
    at Function.each (http://localhost:8000/?package=js:22:15094)​​​​​

Issue/Introduction

This article explains the reason why an analysis file may load in TIBCO Spotfire (TIBCO Spotfire Analyst client or TIBCO Spotfire Web Player) with error 'Read callback 'InitializeFilters' failed.'

Resolution

This issue can be seen if there is a filter control commented out in Text Area HTML.

For example, the following screenshot is the HTML view of a Text Area where a Spotfire filter control has been commented out. Spotfire still attempts to render this filter but since the DOM element will not be present, the initialization of the filter will fail resulting in the "Read callback 'InitializeFilters' failed" error.
User-added image
To resolve this issue, remove the commented code from the Text Area (the green text in above image) which contains filter control and save the analysis file.

Additional Information

Doc: How to use Text Area