Duolith docs

Errors E0600 to E0699

E0642 Command publishes an event the server cannot send yet

Message operation publishes event, and this server has no outbox yet

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

A command's events leave through an outbox written with the command's own changes, so an event is never sent for a change that failed (decision 0165). The outbox arrives with the events package (work package 24). Until then a command that publishes is refused, because running it without publishing would silently drop what other parts wait for.

How to fix it

Leave the command out of this server until events are built.

In a terminal

duolith explain E0642