I also had this problem. The cause is a misleading Stitch settings interface.
Every table you've selected to be synced from a Postgres DB by Stitch needs a "replication method" - options are "Full table" and "Key-based incremental". "Key-based incremental" means only syncing rows whose value is greater than the last row in the previous sync. Think created_at
.
When you select a table to by synced from a Postgres DB by Stitch, it will prompt you for a replication method. However, when you select all tables at once using the checkbox in the top left of the list of tables, you aren't prompted for anything at all. Stitch will allow you to save a configuration with no replication methods on any table, which will immediately fail with the cryptic Inconsistent state
error in the question.
So, to solve:
- open your integration settings
- navigate to "Tables to replicate"
- manually un-check and re-check each table to be synced
- select a replication method when prompted
There is no way to set a replication setting for more than one table at once; it has to be done for each table. When you've done this for all of them, this error will stop being thrown.