The error described below occurs while exporting a dashboard tab in pdf.
SYSTEM SEVERE *** ERROR *** com.snc.whtp: An error occurred when generating callback URL
java.net.URISyntaxException: Illegal character in query at index 214: /$dashboards.do?
"Export failed: An unexpected error has occurred. Please see the instance logs for more details."
This is an indication that something is failing with the URL encoding.
Steps to Reproduce
When an existing report name contains spaces, like for example "PL and Baltics", the 'sysparm_element_value' parameter of the URL string does not get encoded correctly.
The error below is observed in the localhost log:
2018-01-08 02:15:43 (432) glide.background.generation.4649121ddbaf87c423f279e9bf9619bd SYSTEM SEVERE *** ERROR *** com.snc.whtp: An error occurred when generating callback URL
java.net.URISyntaxException: Illegal character in query at index 214: /$dashboards.do?sysparm_dashboard=c6294c86dbe5474423f279e9bf96196e&sysparm_cancelable=true&sysparm_editable=false&sysparm_active_panel=false&sysparm_element=0709278e4fadcf00750944f18110c781&sysparm_element_value=PL and Baltics&sysparm_breakdown_source=9ab93fc2dbed03442b5bff3dbf96194a&sysparm_ignore_default_filter=false&sysparm_tab=46294c86dbe5474423f279e9bf961973
The fix to this problem is planned for a future release. All current releases at the time of writing are affected.
As a workaround, because this issue is related to URL encoding the title, please replace blank spaces with underscores '_'.
Related Problem: PRB1248139