Query error reasons
Database not found
The database named in the datasource settings is not in your warehouse.
Reason in E1005 | Diagnostic code | Who can fix it | Does a retry help? |
|---|---|---|---|
DATABASE_NOT_FOUND | DBN-WH-008 | Your admin | No |
What this means
The database named in the datasource settings is not in your warehouse. Databrain connected to the warehouse, but the warehouse has no database with the name in the connection settings.
What people see
| Who | Message | Next step |
|---|---|---|
| Admin or API caller | The database in the connection settings was not found. | Ask your admin to check the database name. |
| Embed viewer | This chart has a data setup problem. | Contact your admin. |
How to fix it
- Go to Datasources and open the datasource.
- Check the database name, then save.
Warehouse codes behind it
| Warehouse | Codes |
|---|---|
| MySQL, SingleStore | 1049 |
| PostgreSQL, Redshift, CockroachDB | SQLSTATE 3D000 |
| ClickHouse | 81 (UNKNOWN_DATABASE) |
Ask for help
Every error has a six-character ref, for example Ref A1B2C3. API callers find it in
details.ref. Search for the ref in Settings > Diagnostics > Logs to see the full log line, or
send the ref and the time of the error to support.