Drupal\Core\Entity\EntityStorageException when updating entity with a workflow field

Created on 31 March 2024, 11 months ago

Problem/Motivation

I have two workflows defined, let's say (A) and (B). One of them has a field defined, "field_reassign_to". The other does not have any fields defined.

Before creating (B), I wanted to reuse workflow (A) on a new entity type, so I created a field of type Workflow A on it. Then, realizing it does not suit the use case, I deleted the field, and created the workflow B. After that, I recreated the field on the entity of type "Workflow B". Now, when I attempt to update an instance of that content type, I get following error:

Uncaught PHP Exception Drupal\Core\Entity\EntityStorageException: "Field field_reassign_to is unknown." at /vol/mainsite/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php line 817"

Even though the workflow field present on the entity being updated does not have that field defined.

Clearing the cache does not resolve the issue.

Looks like the code confused two workflow types..

πŸ› Bug report
Status

Closed: works as designed

Version

1.7

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mbabayan

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

Comments & Activities

Production build 0.71.5 2024