Does not work with data export + paging

Created on 14 May 2024, about 2 months ago

Problem/Motivation

When using Views Aggregator, something about the pager causes attachments like Data export to break the view. It appears to incorrectly formulate the route to the data export page, missing the view machine name.

Symfony\Component\Routing\Exception\RouteNotFoundException: Route "view..data_export_1" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 206 of core/lib/Drupal/Core/Routing/RouteProvider.php).

Steps to reproduce

  1. Create a view with a page. Initially have the pager/limit set to 0 (all items), display as a Table with aggregation options. (I didn't need to set any aggregation options, can reproduce just using this display style for the view.) Display whatever you want, the default title field is fine
  2. Add another display that is a 'Data export'. Attach it to the page, and put in minimal export settings so that you can save it.
  3. Go back to the 'page' view, may need to clear cache if needed. Observe that the preview works (or check the real view).
  4. Edit the page and change pager settings to "mini" or "full" pager to limit the options. Observe that the preview no longer refreshes and the view page will not load (error).

For posterity, I switched a couple settings around to make sure it was exactly this combination that causes the problem.

  • If the pager shows all, or a limited number of results without a pager, it works.
  • If the page displays as a Table, it works.
  • Error is the same with or without use of filters, sorts, etc.
πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States TLWatson

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

Comments & Activities

  • Issue created by @TLWatson
  • πŸ‡¨πŸ‡¦Canada jdhildeb

    I hit this same issue.

    I found that it is related to the "Column aggregation row applies to" setting within Format -> Settings.

    If you set "Column aggregation row applies to" to "the page shown" then the error goes away. Switching it back to "the entire result set" causes the error to occur.

Production build 0.69.0 2024