CSV Data Export can't find path

Created on 23 September 2022, over 2 years ago
Updated 20 December 2024, 4 months ago

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!

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Fixed

Version

1.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States bmenk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024