SAP Knowledge Base Article - Public

1651521 - Error: 'Failed to execute query: com.sap.sl.parameter.impl.IntervalAnswerImpl cannot be cast to com.sap.sl.parameter.SingleValueAnswer' when creating a report from Crystal Reports for Enterprise

Symptom

  • Cannot create reports
  • Error: 'Failed to execute query: com.sap.sl.parameter.impl.IntervalAnswerImpl cannot be cast to com.sap.sl.parameter.SingleValueAnswer'. Redesign your query or contact the data source maintainer to solve the problem.      

Environment

  • Crystal Reports for Enterprise (CRforEnt) 4.0 support package (SP) 02 patch 2.7 
  • SAP BW 7.x

 

Reproducing the Issue

- Create a BW query
- In the 'Characteristic Restrictions' area of the query, create a variable such a characteristic variable
- Create a text variable customer exit
- The text variable customer exit should use an ABAP code to retrieve the value from the characteristic variable
- In the Rows or Columns area, add a key figure
- In the key figure properties, go to 'General' tab and add a text variable customer exit to the description such as 'Keyfigure_Name &TextvariableCustExit'
- Create a new report against the query from CRforEnt

Cause

The issue has been identified and tracked under bug ID ADAPT01592540

Resolution

  • The bug has been fixed in Feature Pack (FP) 3 for CRforEnt 4.0.
  • FP3 is planned to be released in the first quarter of 2012.

Keywords

KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , Bug Filed

Product

SAP Crystal Reports all versions