Critical severityconfiguration
Power BI Refresh Error:
9001
What does this error mean?
The SQL Server transaction log is not available — the log file may be missing, corrupt, or the database is in an unexpected state.
Common causes
- 1The log file was deleted or moved while SQL Server was not running
- 2The disk hosting the log file failed or was disconnected
- 3The database was attached without the log file and SQL Server cannot create a new log
How to fix it
- 1Step 1: Check the database state: SELECT name, state_desc FROM sys.databases WHERE name = 'yourdb'; — a state other than ONLINE indicates the problem.
- 2Step 2: If the log file was accidentally deleted, attempt an emergency repair: ALTER DATABASE [yourdb] SET EMERGENCY; ALTER DATABASE [yourdb] SET SINGLE_USER; DBCC CHECKDB ([yourdb], REPAIR_ALLOW_DATA_LOSS);
- 3Step 3: If the log is on a failed disk, restore from the most recent full + log backup after addressing the hardware issue.
Frequently asked questions
Official documentation: https://learn.microsoft.com/en-us/sql/relational-databases/errors-events/mssqlserver-9001-database-engine-error