Any field that contains serialized data will fail on save.

Drupal\Core\Entity\EntityStorageException: Object support when dumping a YAML file has been disabled. in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save()

Thats caused by the entity snapshotting done in the entity update hook.
Without a way to disable the snapshotting or filter for the entities this module is unuseable.

CommentFileSizeAuthor
#6 entity_block_example.png136.58 KBdmitry.korhov

Comments

CaptainPinkey created an issue. See original summary.

Marko B’s picture

I have similar problem, tried to export data and I get, any helpful ideas with this?

StatusText: 500 Service unavailable (with message)
ResponseText: The website encountered an unexpected error. Please try again later.Drupal\Component\Serialization\Exception\InvalidDataTypeException: Object support when dumping a YAML file has been disabled. in Drupal\Component\Serialization\YamlSymfony::encode() (line 25 of core/lib/Drupal/Component/Serialization/YamlSymfony.php). Symfony\Component\Yaml\Dumper->dump(Object, 9223372036854775804, 0, 16) (Line: 153)
blanca.esqueda’s picture

Status: Active » Postponed (maintainer needs more info)

Could I have more info, what type of field(s) are you using that has the serialized data?

CaptainPinkey’s picture

The commerce module uses the `map` type on some entities. E.g. these are entities that should not be synced anyway (orders etc.)

blanca.esqueda’s picture

Status: Postponed (maintainer needs more info) » Active
dmitry.korhov’s picture

StatusFileSize
new136.58 KB

Same issue happens with entity_block with node used as component in layout builder.
Steps to reproduce:

  1. Enable Layout Builder
  2. Apply patch from https://www.drupal.org/files/issues/2020-07-07/2942975-116.patch
  3. Create custom layout for node
  4. Add Entity block with node to any region
  5. Save

Example:
entity_block

natts’s picture

I was getting this error when accessing the review page within Drupal Commerce's checkout, and so the simplest workaround was to disable this (content_sync) module. This may help others in future.

blanca.esqueda’s picture

Issue tags: +Commerce, +commerce
blanca.esqueda’s picture

Version: 8.x-2.x-dev » 3.0.x-dev
Related issues: +#3184032: processSerializedFields should handle multi-property fields

Maybe related to serialized fields with multi-property:
I would try the patch in this issue:
https://www.drupal.org/project/content_sync/issues/3184032

hevr’s picture

See https://www.drupal.org/project/content_sync/issues/3192077#comment-14343654 for "Object support when dumping a YAML file has been disabled."

avpaderno’s picture

Issue tags: -Commerce (duplicate)

I am replacing the duplicate issue tags used in the past. I apologize for bumping this issue.