3

I have a problem with civireport. Since I've created and saved one report I can't export it anymore to csv. First, the export to csv was missing. I've tried this...

http://forum.civicrm.org/index.php?topic=22773.0

...but nothing happened. Then I tried this...

http://forum.civicrm.org/index.php?topic=17001.0

...which gave me back the export to csv button, but now, when I click it , I only get a 288 bytes CSV . There's no data at all. I've also found this ...

https://issues.civicrm.org/jira/browse/CRM-4831

...but as you can see it was closed without fixing.

I really need to get this fixed. My organization NEEDS the export report functionality.

Iván Lago

IT Engineer at Engineers Without Borders Galicia

More info:

Server version: Apache/2.2.22 (Debian)

CMS: Drupal 7.36

CiviCRM version:4.6.0

PHP: 5.4.39-0+deb7u2

MySQL: 5.5.41-0+wheezy1

11
  • This functionality works on the 4.6 demo site at d46.demo.civicrm.org so the issue is not within CiviCRM itself, rather with your server set-up. Have you checked the logs to see if there any clues as to what's happening?
    – Graham
    Commented Apr 15, 2015 at 10:25
  • What logs and where are them exactly? I've also enabled debugging in case it can help. Commented Apr 15, 2015 at 12:07
  • Your PHP error log may offer some clues as to what's happening here. Also the CiviCRM log, which in a bog standard install would be located in drupal-root/sites/default/files/civicrm/ConfigAndLog
    – Graham
    Commented Apr 15, 2015 at 13:25
  • Also, on re-reading your question, I'm unclear about your report. Has it been created through the UI, or is it a custom report that you have coded?
    – Graham
    Commented Apr 15, 2015 at 13:28
  • It has been created through the UI. Also, I've also verified that I can't generate a PDF Letter . So PDF generation (other report) is not working widely through the system in general. Commented Apr 15, 2015 at 13:54

2 Answers 2

5

The report you are trying to export (Contact Detail) does not currently support that feature. That particular report presents a variety of information that does not lend itself easily to be represented in a single spreadsheet.

You could use a similar report, such as Contact Summary, and export that.

Or you could use your programming expertise and creativity to find a way to make that report generate an exportable spreadsheet.

CiviCRM is an open-source project and new features come from community contributions of code or funding. The issue you referenced was closed due to lack of participation. Community members such as yourself could change this by stepping up to make it happen.

1
  • That is certainly consistent with what I've experienced. Thanks . Commented Apr 15, 2015 at 20:19
2

I have just checked on the demo side. The csv button is not available by design as the report is not a straightforward table design like the summary report. If you want to you can set the class property of the report to TRUE. Find the spot for this bit of code:

$this->_csvSupported = FALSE;

and change it to

$this->_csvSupported = TRUE;

That will show up the CSV button, although I reckon the CSV output will not be great.

Looks like the PDF button is a bug, can you check on the issue tracker if it is a known one? issue trackker

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.