SAP Knowledge Base Article - Public

1822132 - Error: Failed to export the report, when attempting to export from Crystal Reports to Report Definition format.

Symptom

  • Error: Failed to export the report.
  • Unable to export to Report Definition format.
  • In Crystal Reports, when attempting to export some reports to Report Definition format, it fails with the error: "Failed to export the report".

Environment

  • Crystal Reports 2008

Reproducing the Issue

  1. In Crystal Reports, create a report off any data source.
  2. Insert a subreport on the report.
  3. Format the subreport to be on-demand.
    • Right click on the subreport, and select "Format Subreport..."
    • In the "Format Editor" window, under the tab "Subreport", check the option "On-demand Subreport"

On-demand.png

    • Click "OK" to accept the change.
  1. Export the report to Report Definition format.
  2. It will then display the error: "Failed to export the report."

Failed to Export.png

 

 

Cause

  • This is a known issue that has been tracked under: ADAPT01185512
  • This issue occurs when the report contains an on-demand subreport.

Resolution

  • The issue is resolved in Crystal Reports 2011.
    •  
  • In Crystal Reports 2008, there is no product update that resolves this issue.
  • To workaround the issue in Crystal Reports 2008, uncheck the subreport formatting option: "On-demand Subreport": 
    1. In Crystal Reports 2008, open the report that fails to export to Report Definition format.
    2. In the "Design" view of the report, locate the subreport(s).
    3. Right click on the subreport, and select "Format Subreport..."
    4. In the "Format Editor" window, under the tab "Subreport", uncheck the option "On-demand Subreport"
    5. Click "OK" to accept the change
    6. Export the report to "Report Definition" format.

 

 

Keywords

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

Product

Crystal Reports 2008 V0 ; Crystal Reports 2008 V1