# X_LIFECYCLE_TRIGGER_MISSING

## Means

a history or counter trigger the migrations created is missing from the database

## Typical cause

someone dropped or disabled ultimate_history, ultimate_history_guard or an ultimate_count_* trigger, so writes no longer record history or keep counts

## Fix

`x db migrate --json` — the finding names the psql statement that re-creates the trigger; then x db recount <entity>.<column> --write for a counter

[Entity and database](/error-codes#entity-and-database)
