Route "entity.workflow_scheduled_transition.canonical" error with 'Schedule for state change"

Created on 6 December 2017, about 7 years ago
Updated 21 February 2024, 10 months ago

We have the following error.

Workflow name is example.

We have 3 states.
Creation
Draft
Published

Current state: "Draft"
Target state: "Published"

Schedule: "Schedule for state change

At: Current datetime.

And we execute Cron.

But state is not changed.

We find 3 errors in /admin/reports/dblog.

1. Type: workflow
Message: Scheduled Transition is discarded, since Entity has state ID example_published, instead of expected ID example_draft.

2. Type: workflow_scheduled_transition
Message: Symfony\Component\Routing\Exception\MissingMandatoryParametersException: Some mandatory parameters are missing ("workflow_transition") to generate a URL for route "entity.workflow_scheduled_transition.canonical". in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 182 of /www/workflow.lightning.demoweb.us/htdocs/docroot/core/lib/Drupal/Core/Routing/UrlGenerator.php).

3. Type: cron
Message: rupal\Core\Entity\EntityStorageException: Some mandatory parameters are missing ("workflow_transition") to generate a URL for route "entity.workflow_scheduled_transition.canonical". in Drupal\Core\Entity\Sql\SqlContentEntityStorage->delete() (line 753 of /www/workflow.lightning.demoweb.us/htdocs/docroot/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

And then, we cannot delete the node.

Thanks.

🐛 Bug report
Status

Fixed

Version

1.1

Component

Miscellaneous

Created by

🇯🇵Japan kototoy

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024