🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
Action must have a name
(Replacing message template with parser tag)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
If you get this model error message, an action has been orphaned in your model. For example, a Class has been deleted, but, for some reason, the Class action belonging to it was left behind.
If you get this model error message, an action has been orphaned in your model. For example, a Class has been deleted, but, for some reason, the Class action belonging to it was left behind.


To remove actions without a name, open the OCL debugger for the model itself by right-clicking on a diagram background and selecting Extras -> Open model debugger...
To remove actions without a name, open the [[Documentation:OCL Debugger|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)
# Make one (probably the only one) of the expressions there an Action (1)
# Paste the code below (2)
# Paste the code below (2)
Line 10: Line 10:
[[File:Removing unnamed actions.png|none|thumb|543x543px]]
[[File:Removing unnamed actions.png|none|thumb|543x543px]]
[[Category:Actions]]
[[Category:Actions]]
{{Edited|July|12|2024}}
{{Edited|July|12|2025}}

Latest revision as of 05:56, 5 March 2025

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. For example, a Class has been deleted, but, for some reason, the Class action belonging to it was left behind.

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

  1. Make one (probably the only one) of the expressions there an Action (1)
  2. Paste the code below (2)
  3. Execute it using F5 or the button (3)
AbstractAction.allInstances->select(aa|aa.Name.isNullOrEmpty).delete

Close the dialog and save your 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