Skip to Content
0
Former Member
Nov 13, 2013 at 10:38 AM

Exporting ReportClientDocument as an excel or PDF

139 Views

Hi,

We are trying to render the data as an excel by building a ReportClientDocument object with necessary parameter fields, setting excel export format options to the document and exporting as an excel using PrintOutputController's export method.

We are encountering the below issue when ever trying to export the document as an excel or PDF:

com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Can not create temp file---- Error code:-2147215357 [CRSDK00000615] Error code name:internal

After the initial analysis on SAP forums, it is understood that the error is caused by large amount of data and the below parameters have to be tuned for resolution:

  • In <Installation-dir-of-BO>\Common\4.0\java\CRConfig.XML we have to increase the JAVA heap MIN and Max size

<JVMMaxHeap>64000000</JVMMaxHeap>

<JVMMinHeap>32000000</JVMMinHeap>

  • Increase the value in the ReportApplicationServer Services in the CMC for "Number of database records to read when previewing or refreshing a report". The value -1 is for unlimited records but not recommended for performance.

The parameters we are passing are returning just one record. Even the configuration parameters are set to the same values as above(mentioned under resolution for a similar discussion).

Is there a chance to encounter this error under a different situation than the large data?

Note: We are using BOE 4.X server and the associated RAS SDK to build documents.