# X_TEST_FACTORY_TRAIT_UNKNOWN

## Means

a factory was asked for a trait it does not declare

## Typical cause

a typo at the call site, or a trait never added — the same symptom, so `cause` lists every declared trait to tell them apart

## Fix

`declare it: defineFactory(<table>, { traits: { <trait>: { /* columns */ } } })`

[Testing](/error-codes#testing)
