Skip to main content

Error: 'You cannot remove this subject because next actions have been sent for this subject'

In this article, we explore the error that occurs when saving a group workstep after adding subjects to next actions.

Y
Written by Yusef Abulaynain
Updated over 4 months ago

You may experience the error in the scenario described below:

Scenario

Behaviour

  • Workstep A has a next action of Workstep B.

  • Workstep B is set to allow subjects to added to the workstep. For example, Find Subject is enabled in the Subjects table.

  • Workstep A contains X number of subjects.

  • Workstep A remains in an incomplete state.

  • Workstep B is started, and subjects are added to this workstep that were not subjects of Workstep A.

When the worker returns to workstep A, they're unable to save or finish the workstep.
​
From Mosaic 21.1.0.0, a check is run to validate there are no subjects in the next actions which are not subjects of the workstep. This was introduced as part of the work to allow users to remove subjects from worksteps in which they have been added, where they have been added in error. The check ensures they cannot do this if they have added next actions for those subjects they are removing.

This is working as intended. Mosaic is not designed to have subjects added in the middle of a workflow, subjects should either be added into an initiating workstep, or workflow should be merged in at an appropriate point.
​
If you experience this behaviour, review and amend your workflow and practices accordingly.

Use the Send early functionality sparingly as it's not designed to be used with the previous workstep being left open for extended periods of time. It's intended as a short-term solution rather than an ongoing open workstep.
​
To resolve existing worksteps with this problem:

  1. Where Workstep A has 'find subject' enabled in the embedded form, the additional subject can be added to that workstep, which will allow the workstep to be saved and/or finished appropriately.

  2. Where Workstep A does not have 'find subject' enabled in the form, if Workstep B is incomplete it may be possible to remove the additional subject(s) from Workstep B. Workstep A can then be finished and then Workstep B continued. This will require the additional subject(s) to also be removed from any multi-subjects elements and next actions, and workers will need to ensure they have output the form to PDF if they have added any other information in subjects elements that may be lost.

  3. Where Workstep A does not have 'find subject' enabled in the form and Workstep B has been finished, this cannot be resolved from the front end.

If Workstep A needs to be continued, a new group workstep will need to be created, containing the forms required and with pre-population using 'last started' pre-population from the forms in Workstep A. This can be initiated on the case and should be carefully checked to confirm all the information has come through as required from Workstep A. This workstep should allow 'find subjects' in the form subjects table.

It should be carefully considered whether this workstep should be a stand-alone workstep, with a NFA next action, simply to allow the information to be recorded and completed. It is possible making next actions available from here may cause confusion with the existing workflow - this must be a customer decision and carefully considered and tested.

Did this answer your question?