# Download csv report is intermittently failing if documents are more

**URL:** https://discuss.elastic.co/t/download-csv-report-is-intermittently-failing-if-documents-are-more/345775
**Category:** Kibana
**Created:** [October 26, 2023, 6:53am UTC](https://discuss.elastic.co/t/download-csv-report-is-intermittently-failing-if-documents-are-more/345775 "2023-10-26T06:53:28Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![rkidev](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@rkidev](https://discuss.elastic.co/u/rkidev)
#### Post date: [October 26, 2023, 6:53am UTC](https://discuss.elastic.co/t/download-csv-report-is-intermittently-failing-if-documents-are-more/345775/1 "2023-10-26T06:53:28Z")

</div>

Hi, download csv report is always failing if documents are more than 40k, and for around 30k documents it's getting success sometimes but sometimes it's failing. I am using Kibana 7.16.3 version single node cluster and below are my only configurations in kibana.yml for reporting-

```auto
xpack.reporting.queue.timeout: 9000000
xpack.reporting.roles.enabled: false

```

---

<div class="post-metadata">

### Author: ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)
#### Post date: [October 26, 2023, 12:23pm UTC](https://discuss.elastic.co/t/download-csv-report-is-intermittently-failing-if-documents-are-more/345775/2 "2023-10-26T12:23:52Z")

</div>

Hi @rkidev,

The download CSV limit is impacted by setting `xpack.reporting.csv.maxSizeBytes` as discussed in [this thread](https://discuss.elastic.co/t/reporting-generate-csv-maximum-limit/134692).

I would tread carefully on increasing the threshold as it has the potential to cause performance issues. There are some guidelines [here in the documentation that should help if you want to tweak the settings](https://www.elastic.co/guide/en/kibana/7.16/reporting-settings-kb.html#reporting-csv-settings). Alternatively can you try to split the download into 2?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [November 23, 2023, 12:24pm UTC](https://discuss.elastic.co/t/download-csv-report-is-intermittently-failing-if-documents-are-more/345775/3 "2023-11-23T12:24:31Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
