Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Got the problem when trying to export views data
Symfony\Component\Serializer\Exception\UnexpectedValueException: Could not normalize object of type Drupal\views\ViewExecutable, no supporting normalizer found. in Symfony\Component\Serializer\Serializer->normalize() (line 149 of vendor/symfony/serializer/Serializer.php).
Comments
Comment #2
Yekaterina CreditAttribution: Yekaterina commentedComment #3
dawehner@Yekaterina
Please describe some description how to reproduce the issue.
Comment #4
Yekaterina CreditAttribution: Yekaterina commentedHello @dawehner,
I am trying to export views data (simple view) to CSV or XLS format. Tried to export by using CSV Serialization + REST; CSV Serialization/or XLS serialization + Views Data Export modules; also tried Views Rest Feed, and all the time when i am trying to export the view, I have
Symfony\Component\Serializer\Exception\UnexpectedValueException: Could not normalize object of type Drupal\views\ViewExecutable, no supporting normalizer found. in Symfony\Component\Serializer\Serializer->normalize() (line 149 of vendor/symfony/serializer/Serializer.php)
(version od Drupal 8.2.5 - modules - the latest versions.)
Comment #5
Wim LeersThis definitely sounds like a bug in one of those contrib modules. This is trying to serialize not data, not an entity, but the object that executes views (
ViewExecutable
).Curious what you think, @dawehner.
Comment #6
dawehnerDo you by any chance use searchapi?
Comment #8
Wim Leers