Skip to Content

Query error reasons

Database not found

The database named in the datasource settings is not in your warehouse.

Reason in E1005Diagnostic codeWho can fix itDoes a retry help?
DATABASE_NOT_FOUNDDBN-WH-008Your adminNo

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

WhoMessageNext step
Admin or API callerThe database in the connection settings was not found.Ask your admin to check the database name.
Embed viewerThis chart has a data setup problem.Contact your admin.

How to fix it

  1. Go to Datasources and open the datasource.
  2. Check the database name, then save.

Warehouse codes behind it

WarehouseCodes
MySQL, SingleStore1049
PostgreSQL, Redshift, CockroachDBSQLSTATE 3D000
ClickHouse81 (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.

On this page