Low severityschema
Power BI Refresh Error:
1091
What does this error mean?
An ALTER TABLE DROP COLUMN or DROP INDEX statement references a column or index that does not exist.
Common causes
- 1DROP COLUMN or DROP INDEX is run on an already-dropped column or index (non-idempotent migration)
- 2The column or index name has a typo in the migration script
- 3The migration was applied to one environment but the target environment is at a different schema version
How to fix it
- 1Step 1: Verify the column or index exists: `SHOW COLUMNS FROM your_table;` and `SHOW INDEX FROM your_table;`
- 2Step 2: Use migration tools (Flyway or Liquibase) that track applied migrations to prevent re-running DROP statements.
- 3Step 3: Skip the migration if the column/key is already gone and mark it as applied in your migration tracker.
Frequently asked questions
Official documentation: https://dev.mysql.com/doc/mysql-errors/8.0/en/server-error-reference.html