SAP Knowledge Base Article - Preview

3210171 - Using a Boolean Parameter in a section suppression formula throws error "Exception in formula '{@-suppressSection-0}' at '({?Param1}) " when using Crystal Reports for Eclipse

Symptom

  • If a report created in Crystal Reports contains a boolean parameter, and that parameter is used in a section formatting formula similar to "NOT({?Param1})", then when that report is viewed in Crystal Reports for Eclipse, it generates the error:

    ERROR com.businessobjects.reports.sdk.JRCCommunicationAdapter - detected an exception: Exception in formula '{@-suppressSection-0}' at '({?Param1})':
    The type of the value returned does not match the type of the field.
    at com.crystaldecisions.reports.dataengine.h.if(SourceFile:460)
    at com.crystaldecisions.reports.dataengine.h.a(SourceFile:320)
    at com.crystaldecisions.reports.dataengine.DataContext.a(SourceFile:523)
    at com.crystaldecisions.reports.dataengine.DataContext.getValue(SourceFile:466)
    at com.crystaldecisions.reports.dataengine.DataProcessor2.getValue(SourceFile:1892)
    ...

  • This error occur whether you allow the viewer to prompt for the parameter, or you pass the parameter value in code.


Read more...

Environment

  • Crystal Reports for Eclipse 12.2.227
  • Crystal Reports for Eclipse 12.2.228

Product

Crystal Reports, version for Eclipse 2.0

Keywords

CR for Eclipse , KBA , BI-DEV-JAV , BI Software Development Kits (SDKs) - Java , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.