Critical severityconfiguration
Power BI Refresh Error:
XX002
What does this error mean?
A PostgreSQL index has been detected as corrupted. Queries using the index may return incorrect results or fail.
Common causes
- 1Hardware failure corrupting index pages
- 2Bug in PostgreSQL causing index inconsistency
- 3Disk full during an index rebuild operation
- 4Unclean server shutdown during index creation
How to fix it
- 1Step 1: Identify the corrupt index from the error message.
- 2Step 2: Drop and rebuild the index: `REINDEX INDEX CONCURRENTLY <index_name>;`
- 3Step 3: Validate the rebuilt index: `SELECT * FROM pg_indexes WHERE indexname='<index_name>';`
- 4Step 4: Check disk health to rule out hardware as the root cause.
Frequently asked questions
Official documentation: https://www.postgresql.org/docs/current/errcodes-appendix.html