I'm using views_data_export to export data from the views displays. I added a Data Export option to the user account list views. When I use the batch in export settings, user role field is missing in the exported CSV file. While not using batch, role field is there.

enter image description here


  • have you tried the export without the exposed filters? Commented Dec 17, 2019 at 10:59
  • yes I did, it doesn't make any difference.
    – batMask
    Commented Dec 18, 2019 at 1:35

1 Answer 1


I found this is a bug in the module itself, and the following patch will solve the issue.

Discussion: https://www.drupal.org/project/views_data_export/issues/2789531#comment-13345278

Patch: https://www.drupal.org/files/issues/2019-11-08/views_data_export_batch_empty_fields.patch

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.