I have create a view and added data export attached to pages that have rows, But the exported files is empty.

I am using drupal 8.2, installed required libraries using composer, install the module via drush so all dependencies installed successfully.

Does it a bug or what I missed.

Comments

mhmd created an issue. See original summary.

theemstra’s picture

Component: User interface » Code
Status: Active » Postponed (maintainer needs more info)

Please add more information, so we can reproduce.

  • Views overview
  • The query that is produced
  • The actual file

I cannot reproduce myself, works on my 8.x dev installation

Webbeh’s picture

Hm, I'm seeing something similar, where the Data Export display on an existing, working table-based view is showing an empty query and an empty output file; the other, table display otherwise shows fine.

Recreating the view's export data in a separate view, however, works.

I have the config export of the broken view and the working view, if that's helpful.

dzinkevich’s picture

I'm seeing this too. I've narrowed down to it being related to an exposed filter for status/published being set to "Any" - this creates an empty file (and also logs an "illegal choice on status field" in dblog). Setting the filter to true/false produces the results you'd expect.

dzinkevich’s picture

I was able to solve my problem via https://www.drupal.org/project/views_data_export/issues/2998481 - I had initially copied all the filters, but I made one on the views table not required without matching the views data export. Hopefully this helps someone else as well!