Some mandatory parameters are missing ("workflow_transition") to generate a URL for route "entity.workflow_scheduled_transition.canonical". in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 846 of /home/website/public_html/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

Steps to reproduce

1. Create a node and save.
2. Edit the node that you've created and use `schedule for state change` in the workflow field and save.
3. Edit that node again and still use the `Schedule for state change`. This time you can't save because of that error above.

Comments

localnetwork created an issue. See original summary.

ryanhblack’s picture

Status: Active » Needs review
StatusFileSize
new2.13 KB

I believe this might be because there is a separate entity type for scheduled transitions but the route argument "workflow_transition" is the same. I tried changing this to "workflow_scheduled_transition" everywhere where it referred to a scheduled transition and it worked for me.

Status: Needs review » Needs work

The last submitted patch, 2: workflow-scheduled-routing-3200883-2.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

johnv’s picture

Status: Needs work » Postponed (maintainer needs more info)

I have just committed this: #3157199: Remove deprecated entity.manager, few WorkflowStorage arguments.
And i now cannot reproduce your problem on D9.2.x

Which version are you on?
Can you please retest with current dev-version?
You are not actively using the URL, are you? Just got the error?

johnv’s picture

Title: Some mandatory parameters are missing ("workflow_transition") » Route "entity.workflow_scheduled_transition.canonical" error - Some mandatory parameters are missing ("workflow_transition")
johnv’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)

I guess this is not relevant anymore.

todea’s picture

This is still an issue. It looks like it didn't get rolled into 8.x-1.4 and is not in 8.x-1.7

johnv’s picture

Version: 8.x-1.4 » 8.x-1.x-dev
Status: Closed (outdated) » Needs review

Indeed, the patch in #2 is not committed.
Please test the patch and report back if it solves your problem.

todea’s picture

Yes, patch #2 fixed the issues on my end.

  • johnv committed 738829ab on 8.x-1.x authored by ryanhblack
    Issue #3200883 by ryanhblack: Route entity.workflow_scheduled_transition...
johnv’s picture

Version: 8.x-1.x-dev » 8.x-1.7
Status: Needs review » Fixed

It is now added.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.