Throw exception on missing attributes