# X_TEST_FACTORY_INVALID

## Means

a factory builds a row its own entity refuses

## Typical cause

assertFactoriesValid() built and created every factory, and each trait alone, against its entity: a default or trait yields a column value the entity refuses, or a key it declares no column for

## Fix

`edit the defaults or trait the cause names, in the file that declares its defineFactory(…), then re-run assertFactoriesValid(…)`

[Testing](/error-codes#testing)
