Medium severityschema
Power BI Refresh Error:
1075
What does this error mean?
A CREATE TABLE or ALTER TABLE defines more than one AUTO_INCREMENT column, which MySQL does not allow.
Common causes
- 1ORM or code generator produces a table definition with multiple AUTO_INCREMENT columns
- 2Copying DDL from another database that allows multiple auto-increment columns (like some versions of MariaDB with sequences)
- 3Manually adding AUTO_INCREMENT to a second column without removing it from the first
How to fix it
- 1Step 1: Identify which columns have AUTO_INCREMENT: `SHOW CREATE TABLE your_table;`
- 2Step 2: Remove AUTO_INCREMENT from all but the primary key column: `ALTER TABLE your_table MODIFY COLUMN secondary_col INT NOT NULL;`
- 3Step 3: If a second auto-increment column is needed, use a trigger to populate it instead.
Frequently asked questions
Official documentation: https://dev.mysql.com/doc/mysql-errors/8.0/en/server-error-reference.html