If you are getting this when inserting a row, the solution for me was that I'd failed to add AUTOINCREMENT to the SQLite primary keys while creating the temporary test DB. Ordinal 0 is the first column (usually the integer PK)