🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
Action must have a name
This page was created by Lars.olofsson on 2023-03-27. Last edited by Stephanie on 2025-03-05.

If you get this model error message, an action has been orphaned in your model.

The remove any action without a name, open by OCL debugger for the model itself by right clicking on a diagram background and selecting Extras -> Open model debugger...

Make one (probably the only one) of the expressions there an Action (1)

Paste the code below (2)

Execute it using F5 or the button (3)

AbstractAction.allInstances->select(aa|aa.Name.isNullOrEmpty).delete

Close the dialog and save you model as usual.

Removing unnamed actions.png
MDriven Chat

How would you like to chat today?

Setting up your conversation…

This may take a few moments