"Export data" fails when there is a large volume of data/feedback items
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3543889. -->
Reported by: [jenna.tollerson](https://www.drupal.org/user/147099)
Related to !17
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>When there is a very large volume of feedback items in the feedback dashboard, clicking the "Export data" button results in a fatal error, "Fatal error: Allowed memory size exhausted", and no downloaded CSV.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>I'm not sure what the threshold is, and it will probably differ based on the memory resources of a particular site, but we experienced this issue on a site when trying to export over 700,000 feedback items.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Add a batch process to the data export.</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p><del>MR is forthcoming.</del> This is ready for review.</p>
<h3 id="summary-ui-changes">User interface changes</h3>
<p><img src="https://www.drupal.org/files/issues/2025-09-03/batch_processing_admin_feedback.png" alt="Screenshot showing the batch processing of the data export, with a full progress bar and a success message."></p>
<p>When the user clicks the "Export data" button, they're taken to a screen that shows the progress of the batches. When it's complete, they see a message they their file has downloaded, and a link back to the dashboard.</p>
<h3 id="summary-api-changes">API changes</h3>
<p>None.</p>
<h3 id="summary-data-model-changes">Data model changes</h3>
<p>None.</p>
issue