"Trying to Raise on unrooted UserEvent" What does "unrooted" mean?

Following the

Events (UserEvent)

documentation I’m trying to get a very simple event example working and I’m getting this error:

“Trying to Raise on unrooted UserEvent”

What does “unrooted” mean?

“Unrooted” means that the event you’re trying to raise is not available in the UX tree. E.g., there is no instance of it anywhere. Either you’ve defined it as a ux:Class (which is just a template), or you’ve nested it in a trigger that removes it from the tree.

Show some code and we’ll fix that in no time.