SAP Knowledge Base Article - Public

3731100 - Crystal Report instance failing with "Not enough memory for operation" error

Symptom

- "Not enough memory for operation" when scheduling the Crystal Report ".
-Even after tried increasing the JVM heap size to 2g 4g on the Adaptive Job Server, But it still gives the same error - "Not enough memory for operation." 

The logs shows

procReport.dll: CRPE FAILED: GetLastPEErrorInfo(1) returns crpe error code [500] with extended error string [Not enough memory for operation.]. Localized error string is [Not enough memory for operation.] 

Creating new error object,Error message,"String length is less than 0 or not an integer."

Creating new error object,Error message,"Failed to export the report

 procReport.dll: FAILED: Error message in the language of the server[Not enough memory for operation.], resID[61876], sLocale[en-US]

CAuditImplementation::CreateAuditDetail[1]: creating audit detail(id[1], value[Not enough memory for operation.], bunch[1]).

CAuditImplementation::ProcessAuditEvents(): adding audit detail(id[1], value[Not enough memory for operation.], bunch[1]).  

Environment

 Crystal Reports 2020
 Crystal Reports 2025

Reproducing the Issue

  1. Login to BI launchpad.
  2. Navigate to the report under folders.
  3. Schedule the crystal report.
  4. Error message "Not enough memory for operation" appears.

Cause

The root cause is likely a string in one formula being empty/null, potentially due to changes in DB records or parameter values.

Resolution

  • To return the expected data set, you can either:
    • Convert NULL values to default; or
    • Evaluate the NULL within the Record Selection Formula, or Formulas
         
        
  • Convert the null value to the default value of their data type.

    Example of default values by Data Type:
    • The null values in a Number field are converted to a zero (0) number value.
    • The null values in a String (Text) field are converted to an empty string ("") value.
    • The null values in a Date field are converted to zero (0, 0, 0) date values.
    • The null values in a Date-time field are converted to zero (0, 0, 0, 0, 0, 0) date-time values.

  • To convert the NULL values to default :
    1. In Crystal Reports under the menu "File", select "Report Options"
    2. Select the 'Convert NULL Field Values to Default' check box
    3. Click 'OK'
    4. Save the report.
  • Evaluate the null value within record selection criteria or within formulas using the IsNull function.
      
    1. In Crystal Reports, open the report.
    2. Create formula or record selection criteria.
    3. Use the IsNull function at the beginning of the formula or record selection criteria.
    4. If applicable, specify a value or action if the IsNull function evaluates a null record


     and also Add a Parameter that Split the report for Regions or run it per date Range. 

See Also

Additional information:
Knowledge Article KBA KB0096283 - Error: "Not enough memory for operation" when scheduling the Crystal report from Infoview
Knowledge Article KBA KB1034706 - "Not enough memory for operation"

Keywords

Not enough memory, Crystal reports error, BI launchpad, CMC, Report. , KBA , BI-BIP-CRS-FUN , Admin, Viewing & Scheduling Reports , Problem

Product

SAP Crystal Server 2020