cancel
Showing results for 
Search instead for 
Did you mean: 

csv export of large file will not complete

Former Member
0 Kudos

Our hospital has contracted with a projection company that studies our patients' demographics and compares them to the medical problems and outcomes for each case.  I've had to write a rather large report that uses four subreports which distribute into formula driven fields in order to layout the data as requested.  Roughly half of the fields are generated from the subreports In the end, the file contains around 110 fields for each patient.  They request the file be generated for a years worth of data at a time, however I cannot get a file to be generated and exported for over a few days time.  We're a small hospital, so the successful export only contains less than 100 records.  Myself and our senior analyst have reviewed the file multiple times to ensure it's as streamlined as possible, but we still cannot get the file to export.  The records generate in the status box, but we MAY gain 1% a day.

Is there anything we can do within crystal or in the link to the SQL database which would get us the data movable quicker?  Does this behavior reflect on Crystal or perhaps the condition of the server (which we've had problems with before, but running crystal reports off of it has not been one).

thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

ido_millet
Active Contributor
0 Kudos

Test exporting to 'Excel Data Only' and saving that to CSV.

Other approaches to consider:

  • Create a database VIEW, SP, or use a Command as the data source for the report
  • Use SQL Expressions
  • use a UFL (User Function Library) that offers functions for writing to text files: Fixed length text exports using Cut Light
DellSC
Active Contributor
0 Kudos

I highly recommend moving to a command or a view (or set of views) that will pull ALL of the data for the report without using subreports.  I suspect that the subreports are part of what's causing the problem.

-Dell

former_member183750
Active Contributor
0 Kudos

Hi Jeffrey

What version of Crystal Reports are you using? Please be precise; In the CR designer, go to Help | About and report the version s noted there. Also, please see the following KBAs:

1325942 - Subreport data does not export to CSV in Crystal Report

- Ludek

Senior Support Engineer AGS Product Support, Global Support Center Canada

Follow me on Twitter