Problem/Motivation
Trying to attach a Data Export view to a simple list view for a content type that is indexed via SearchAPI. This works as expected on 4 other content types on this site.
Steps to reproduce
Create a view of indexed content called "Notebooks". Add a csv data export to it. Set Format for export to csv. Ensure exposed filters in basic and data exports are exactly the same. Set the Facet source in the data export to the page view. Set the path to export_notebooks and the filename to [view:title].csv Preview mode shows correct data results, but says the data_export_1 view has no path. On save of the view, I see this in the error log:
Error: Call to undefined method Drupal\views\Plugin\views\style\Table::getFormats() in Drupal\rest\Plugin\views\display\RestExport->collectRoutes() (line 351 of /var/www/html/libstaff9/core/modules/rest/src/Plugin/views/display/RestExport.php)
If I attach the data export to the page and try to display the page I get this error in the log:
Symfony\Component\Routing\Exception\RouteNotFoundException: Route "view.lab_notebooks_search.data_export_1" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 206 of /var/www/html/libstaff9/core/lib/Drupal/Core/Routing/RouteProvider.php).
I have tested this on another instance of Drupal using 8.x-1.1 with the same results. As I mentioned though I don't think it's specific to the 8.x-1.0 or logically it would not work on the other content types on this site when it fact it works fine with them.
Proposed resolution
Where should I be looking to understand why VDE is not seeing the export view for this? Thanks for any pointers!
Comments
Comment #2
steven jones commentedSounds like you needed to add path to the export views display.
Hope you got the problem sorted in the end.