Date Posted:
Product: TIBCO Spotfire®
Product: TIBCO Spotfire®
Problem:
Opening an analysis in TIBCO Spotfire Web Player with configuration block throws "Communication error. Contact your administrator."
Solution:
When trying to open analysis in the TIBCO Spotfire Web Player with predefined settings using a configuration block, the analysis fails to load with below error:
"Communication error. Contact your administrator. Error reference code: b8a74366-a365-46a5-bfa5-2172e6e1e84d"Note: The reference code will be unique.
For example:
You will see an error in the Spotfire.Dxp.Worker.Host.Debug.<service_id>.log like this:
Unable to load document '/BASEBALL 453d4abe-7804-499b-938b-bdb8ae1c06df'" System.ArgumentException: Not a well-formed configuration block. Parse error: Line 1: A recognition error occurred. at Spotfire.Dxp.Application.Configurators.ConfigurationParser.ParseBlock(TextReader reader) at Spotfire.Dxp.Application.Configurators.ConfigurationBlock..ctor(TextReader blockReader) at Spotfire.Dxp.Application.DocumentOpenSettings.set_ConfigurationBlockText(String value) at Spotfire.Dxp.Web.WebAnalysis.LoadDocumentAsync(AnalysisPathAndId fileName, String parameters, String bookmarkId, Customization cust, LoadDocumentAsyncCallback callback, LoadDocumentLogCallback doneCallback) at Spotfire.Dxp.Worker.Services.Web.Web.WebAnalysisOpenHelper.Open(AnalysisPathAndId filePath, UserSession userSession, AnalysisOpenOptions openOptions)
The parameters come into scope before data is loaded and thus configuration block language takes a list of parameter assignments first and then a list of configuring statements. So setting document properties or parameters must be done first in the configuration block, then next are the configuring statements like filter settings.
For example, the following URL where the filter is configured first before the parameter assignment in the configuration block will result in the error seen above: Instead, this is the correct version of the URL where the parameter is set first and then the filter: Wiki: Create a Configuration Block in TIBCO Spotfire
Comments
0 comments
Article is closed for comments.