Running automapper using an existing DB and everything has been great until now. An expected class is missing.

This shows the table name, but the class is missing:


And that was quick:

2. Missing Primary Key

SQLAlchemy Automap requires tables to have a primary key defined. If a table does not have a primary key, Automap will not be able to load it. Make sure that the table you are trying to load has a primary key defined. If not, you can add a primary key to the table using SQL commands or an ORM migration tool like Alembic.

This was my issue

SqlAlchemyMissingClasses (last edited 2024-01-22 18:47:48 by narrator)