Parse error when providing configuration block as part of the Web Player analysis URL, with the following message: "Error message: Not a well-formed configuration block. Parse error:"

Parse error when providing configuration block as part of the Web Player analysis URL, with the following message: "Error message: Not a well-formed configuration block. Parse error:"

book

Article ID: KB0077618

calendar_today

Updated On:

Products Versions
Spotfire Web Player All Versions

Description

Resolution:
When an incorrect configuration block is provided as part of the Web Player analysis URL, the following error is thrown:
 
     Error message: Not a well-formed configuration block. Parse error: Line 1: A recognition error occurred.


One syntax error that will cause this is the use of single-quotes when specifying a string value in the configuration block, as shown below:

 
  http://mySpotfireServer/spotfire/wp/analysis?file=/Sales%20and%20Marketing&configurationBlock=SetFilter(tableName = 'SalesAndMarketing', columnName = 'Store Type', values = { 'Large Retailer'});

For the above URL, it will throw the error message as mentioned above ("Not a well-formed configuration block. Parse error:"). To fix it, use 
double-quotes when specifying a string value:  
 
     &configurationBlock=Parametername={“values”};

The correct URL looks like the following:

http://mySpotfireServer/spotfire/wp/analysis??file=/Sales%20and%20Marketing&configurationBlock=SetFilter(tableName = "SalesAndMarketing", columnName = "Store Type", values = { "Large Retailer"});

Notes
 
1). Although the configuration block URL may seem to work with single quotes, it does not work when there is a space in the string. 
 
2). Exactly the same error will be thrown if there is a semi-colon (;) missing at the end of the configuration block.

Issue/Introduction

Parse error when providing configuration block as part of the Web Player analysis URL, with the following message: "Error message: Not a well-formed configuration block. Parse error:"

Additional Information

https://community.tibco.com/wiki/create-configuration-block-tibco-spotfire