Problem Note 62441: SAS® Visual Analytics reports that are displayed using the SDK fail to render with "An unexpected error" and "Error resolving dynamic prompts"
Overview
SAS Visual Analytics reports that are embedded on a website using the SDK, might display the following generic error:
An unexpected error was encountered while attempting to fulfill the request.
When this problem occurs, the report-execution log might contain one of the following errors:
Error resolving dynamic prompts - java.lang.ClassCastException:
java.lang.String cannot be cast to java.lang.Double
Error resolving dynamic prompts - java.lang.ClassCastException:
java.lang.Double cannot be cast to class java.lang.String
A similar error appears in the browser's console output.
Note: To capture console output in your browser, see SAS KB0036430.
About the Cause
This combination of an unexpected error and a java.lang.ClassCastException error can occur after you edit a control that has the Initially select first item option selected. Specifically, you do one of the following:
- Switch a measure that was converted to a category with a category that was not converted from a measure.
- Switch a date with a category.
Resolution for This Issue
As a workaround, follow these steps:
- Open the report in edit mode in SAS Visual Analytics.
- Select the control and deselect the Initially select first item option.
- Select a value in the control.
- Clear the value in the control.
- Select the Initially select first item option again.
- Save the report.
Operating System and Release Information
| SAS System | SAS Visual Analytics (on SAS Viya 3.x) | Linux for x64 | 8.4 | | Viya | |
| Microsoft® Windows® for x64 | 8.4 | | Viya | |
| SAS System | SAS Visual Analytics | Linux for x64 | 2020.1 | | Viya platform | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Problem Note |
| Priority: | medium |
| Date Modified: | 2023-06-01 14:54:52 |
| Date Created: | 2018-06-11 11:24:54 |