Trying to build an export, I ran into this error (copied here primarily for SEO for anyone else with this problem):
Fatal error: Call to a member function addMetaData() on a non-object in /shared/vash/sandboxes/garfield/fieldemu/www/sites/all/modules/views_data_export/plugins/views_data_export_plugin_display_export.inc on line 736
Investigating, I realized the problem. The module is hard-coded to assume that the query backend is SQL. Unfortunately, that is an invalid assumption. Views supports all sorts of query backends besides SQL. In my case, I'm using Search API. Of course, that means that the $query object on that line is not a DBTNG select query but a Search API query, and thus addMetaData(), addTag() and all of the other DBTNG-specific methods do not exist.
I would use the non-batched option, but that dies for memory reasons as expected. (I have ~500 records in my result set at the moment, and I can guarantee that in production it will be larger.) The net result is that this module becomes useless for anything other than SQL backends.
Marking this as major, since it causes a fatal error. At bare minimum this should be documented, but really it should be corrected.
Comments
Comment #1
steven jones commentedPlease search open issues before opening new ones, this is a duplicate of: #1258390: Add support for batched exports of Search API views. We should be sprinting on this module in the next few weeks, and this is on the hit list.