High severityresource
Power BI Refresh Error:
1205
What does this error mean?
A transaction waited longer than innodb_lock_wait_timeout seconds to acquire a row lock held by another transaction.
Common causes
- 1A long-running transaction holds locks on rows needed by a concurrent ADF copy activity
- 2Bulk UPDATE or DELETE without proper batching locks too many rows, blocking other queries
- 3Missing indexes cause full table scans that acquire excessive row locks
- 4Application connection pool has an idle transaction that was never committed or rolled back
How to fix it
- 1Step 1: Identify blocking transactions: `SELECT * FROM information_schema.innodb_trx;` and `SELECT * FROM information_schema.innodb_lock_waits;`
- 2Step 2: Kill the blocking transaction: `KILL <trx_mysql_thread_id>;`
- 3Step 3: Increase the lock wait timeout if long transactions are expected: `SET GLOBAL innodb_lock_wait_timeout=120;`
- 4Step 4: Break large UPDATE/DELETE operations into smaller batches: process 1000-10000 rows per transaction.
Frequently asked questions
Official documentation: https://dev.mysql.com/doc/mysql-errors/8.0/en/server-error-reference.html