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..
Closed: works as designed
1.7
Code