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

Yekaterina created an issue. See original summary.

Yekaterina’s picture

Title: Symphony error for Serialization » Symfony\Component\Serializer\Exception\UnexpectedValueException: Could not normalize object of type Drupal\views\ViewExecutable
Issue summary: View changes
dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

@Yekaterina
Please describe some description how to reproduce the issue.

Yekaterina’s picture

Hello @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.)

Wim Leers’s picture

Priority: Major » Normal

This 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.

dawehner’s picture

Do you by any chance use searchapi?

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Wim Leers’s picture

Category: Bug report » Support request
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)