# CSV export of reports is broken

**URL:** <https://meta.discourse.org/t/csv-export-of-reports-is-broken/116501>\
**Category:** Bug\
**Created:** [1 במאי,‏ 2019,‏ 1:30am UTC](https://meta.discourse.org/t/csv-export-of-reports-is-broken/116501 "2019-05-01T01:30:36Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![mbauman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mbauman/32/139835_2.png) [@mbauman](https://meta.discourse.org/u/mbauman)\
**Post date:** [1 במאי,‏ 2019,‏ 1:30am UTC](https://meta.discourse.org/t/csv-export-of-reports-is-broken/116501/1 "2019-05-01T01:30:36Z")

</div>

Attempting to export a variety of reports (`*.discourse.org/admin/reports/likes` and `topics` and `posts` and `pageviews` and more…) yields a javascript error in the console:

```plaintext
Uncaught TypeError: Cannot read property 'category' of null
    at n.exportCsv (_admin-782325fc6304acaa8b3709a0e15ff70a65de97eea7b4b811d6dbe1315e86d3b0.js:4568)
    at e.r._join (_ember_jquery-a40c13c332a81d765d3281335e4a756ef34f0d72a592a96b7e7b37b022328f29.js:62460)
    at e.r.join (_ember_jquery-a40c13c332a81d765d3281335e4a756ef34f0d72a592a96b7e7b37b022328f29.js:62173)
    at c (_ember_jquery-a40c13c332a81d765d3281335e4a756ef34f0d72a592a96b7e7b37b022328f29.js:49023)
    at _ember_jquery-a40c13c332a81d765d3281335e4a756ef34f0d72a592a96b7e7b37b022328f29.js:19131
    at h (_ember_jquery-a40c13c332a81d765d3281335e4a756ef34f0d72a592a96b7e7b37b022328f29.js:46648)
    at _ember_jquery-a40c13c332a81d765d3281335e4a756ef34f0d72a592a96b7e7b37b022328f29.js:19130
    at n.click (_application-555069f6ee111c9cd19c85f6ce9c364b7583a0ba0a2ab416efdcb430428bd5f7.js:45388)
    at n.trigger (_ember_jquery-a40c13c332a81d765d3281335e4a756ef34f0d72a592a96b7e7b37b022328f29.js:42680)
    at n [as trigger] (_ember_jquery-a40c13c332a81d765d3281335e4a756ef34f0d72a592a96b7e7b37b022328f29.js:40180)

```

I can export CSVs for those reports for which I can manually set a category (instead of using the default “all categories”), but of course that’s not terribly helpful when I actually want to export all categories.

This used to work a few months ago but has recently regressed.

I’m using Chrome Version 74.0.3729.131 (Official Build) beta (64-bit) on macOS, but I see the same behavior with Safari, too.

---

_[View the full topic](https://meta.discourse.org/t/csv-export-of-reports-is-broken/116501)._
