The following table is a collection of some common error messages surfaced in Looker, explanations of their underlying causes and where they occur, and troubleshooting resources. The errors appear according to how frequently they are reported to Looker Support, in descending order, starting with the greatest number of support requests at the top.
The Locationcolumn indicates where in Looker the error message is displayed, and includes the following options (some errors can appear in more than one location in the product):
IDE = LookML validator/IDE
Ex = Explore
SQL = SQL Runner
LD = LookML dashboard
D = Dashboard
S = Schedules
- The Liquid for variable reference,
{{ }}
, is nested within Liquid for logic,{% %}
. - A templated filter references a table that is not joined into a derived table.
- A field referenced in Liquid is not fully scoped with a view name (
view_name.field_name
). - A filter's value is referenced inside another LookML dashboard filter.
- A
parameter
parameter's value is not compatible with the correspondingtype
. For example: {% if parameters.change_value._parameter_value == "'AA'" %}
Review theparameter
type
to ensure that the value evaluates correctly (type: string
versustype: unquoted
). - A field is referenced correctly in Liquid as
view_name.field_name
, butfield_name
is not defined in the scoped viewview_name
, or the view is aliased withfrom
in an Explore. - A Liquid reference to a variable is not defined, or the reference includes a typo.
- A Liquid reference includes a dimension group of
type: time
, but not the specific timeframe. For example, instead of{{
view_name.creation_date }}
, the reference should use{{
view_name.creation_date_year }}
. - A field is using Liquid with LookML substitution operator syntax,
${view_name.field_name}
, instead of without, asview_name.field_name
.
Inaccessible view (?). (?) is not accessible in explore (?). Check for missing joins in explore (?).
- The referenced view doesn't exist.
- A join is missing, making the view inaccessible to some Explores.
- The view is renamed with a
from
parameter in an Explore.
Unknown or inaccessible field (?). Check for typos or append a timeframe to the name if the field is type time.
Inaccessible view (?). (?) is not accessible in explore (?). Check for missing joins in explore (?).
may apply, plus the following: - There is a typo in a field name or in a reference to the field.
- The field is excluded from an Explore by the
fields
parameter. - The reference is to a
dimension_group
without a timeframe specified.
- A view is not included in the model file.
- An
explore
is extending a baseexplore
that is missing aview_name
parameter. - An Explore name defined in the
explore
parameter is based on a misspelled or nonexistent view name. - A model-based SQL Runner query is running with the incorrect model selected.
- An
explore
is extending a baseexplore
that is missing aview_name
parameter, and fields from any of the joined views reference the baseexplore
name. - A field references a view that is misspelled, nonexistent, or not joined to applicable Explores.
- A native derived table (NDT) definition includes a
bind_all_filters
parameter on a custom field that is not defined in LookML. - A LookML filter references a LookML field that is commented out or that does not exist.
- A LookML filter references a LookML field from a different view, and the field is not fully scoped nor joined into all relevant
explore
parameters.
Measures with Looker aggregations (sum, average, min, max, list types) may not reference other measures.
Unknown view (?). View (?) does not exist in model (?). Check for typos or missing include statements in (?).
- Any dependencies for an existing PDT have failed to build.
- There is an issue with the connection, which needs to be diagnosed by testing the connection (for example, testing the connection may reveal that the Looker user may not have sufficient own or write access to the database).
- Imported project files, such as a view that defines the failing PDT, or a view that is referenced by the failing PDT, are not included in the importing project.
- The database connection does not have the Persistent Derived Tablessetting enabled.
- A Looker Block's code has not been updated to the connection's SQL dialect, if different from the dialect for which the block was written.
- OAuth is enabled for a Snowflake or BigQuery connection.
- A value other than the default value,
TRUE
, has been set for the Snowflake databaseAUTOCOMMIT
parameter.
- A field referenced by a
suggest_dimension
parameter does not exist, has been commented out, or is excluded in an Explore by afields
parameter. - A field referenced by a
suggest_dimension
parameter is defined in another view, but is not fully scoped asview_name.field_name
in the reference. - A
suggest_dimension
parameter references a field in a different view that is not joined into all relevantexplore
parameters, or a view that is aliased in anexplore
with afrom
parameter.
- A typo in the path to the file is causing en error.
- A folder reference is using incorrect syntax.
- A project import reference is using incorrect syntax.
type: median
or type: percentile
with symmetric aggregates.bind_all_filters
parameter is joined to one or more Explores other than the Explore defined in the explore_source
parameter.Measures of type count do not use the sql parameter. Use count_distinct to count by something other than the primary key, or remove the sql parameter.
sql
parameter is used in a measure of type: count
. Count type measures perform a count by the primary key declared in the view file and do not require a sql
parameter.An explore named (?) has been defined multiple times. Each explore in a model must have a unique name.
- An Explore name defined in the
explore
parameter of a model file is duplicating another existing Explore name. Explore names must be unique in a model. - An imported project has an
explore
with the same name as an existingexplore
in the importing project. - An included model file has an
explore
with the same name as an existingexplore
in the including project model file. * - There is a circular reference in the code, referencing the
explore
(or model file) multiple times.
- A model is including the view folder, but the specific view file is outside the folder.
- A model is including the name of the view, but not the view file, if named differently.
- A view is joined into an
explore
multiple times, but is missing thefrom
parameter the second time it is joined.
- The field you are trying to reference does not exist, has been misspelled, or has been commented out.
- A referenced field is defined in a different view, and is not scoped with its view name.
- A field is defined in a different view that is not joined into the necessary Explores, or the view is aliased in a join, making the field inaccessible by some Explores.
- A
required_fields
parameter references a field that is inaccessible, is misspelled, doesn't exist, or is commented out.
access_filter
parameter.- A field referenced by a
label_from_parameter
parameter doesn't exist, is misspelled, or is commented out. - A field referenced by a
label_from_parameter
parameter exists, but is not aparameter
type.
access_grant
parameter.relationship
is not defined. When a relationship
is not specified, Looker assumes a many-to-one
relationship by default.No distribution_style specified in persistent derived table (?). Using default distribution style (?).
distribution_style
parameter specified in its derived_table
definition. When there isn't a distribution_style
specified, Looker defaults to ALL
.- A field referenced by an
always_filter
parameter does not exist, is misspelled, or is commented out. - A field referenced by an
always_filter
parameter is adimension_group
oftype: time
that does not have a timeframe appended. - A field referenced by an
always_filter
parameter is a field that is defined in a view that is not joined into all relevantexplore
parameters, or the field is not scoped with its view name.
type: location
is missing either the sql_latitude
or the sql_longitude
subparameter. Location type fields require both.- There is no
sql_step
specified in thecreate_process
, which requires one or moresql_step
subparameters. - A cached LookML validator error flagged a missing
sql_step
even though asql_step
was already added. Validate once more to resolve the error.
- A view is included using the default
include: "*.view.lkml"
, but the view is in a different folder. - A view name or file path is misspelled in an
include
statement, or theinclude
statement is including the name of the view, but not the view file, if named differently. - There is an issue with special characters, such as
_views
, in a folder. - An
explore
is extending anotherexplore
that is missing aview_name
parameter that specifies the base view.
The location field type does not use the sql parameter. Please use sql_latitude and sql_longitude instead.
sql
parameter is used in a field of type: location
. Location type fields require sql_latitude
and sql_longitude
subparameters instead of the sql
parameter.type: list
.- A database other than the main connection database is specified in the PDT Overridescolumn on a connection's Connection Settingspage in the Adminpanel.
- The per-user query limit has been exceeded and a queued query has hit the connection pool timeout.
- A JDBC connection has failed.
- An unexpected Looker application failure has occurred.
- Dimension fill cannot be applied because more than one dimension was selected in an Explore.
- Dimension fill cannot be applied because one or more fields were pivoted in an Explore.
- Dimension fill cannot be applied because a field has distinct string values (for example,
allowed_value
orcase
parameters), and there is a filter applied to that field.
filters
parameter was used with any measure type other than the following: count
, sum
, average
, and count_distinct
.- A misspelled, nonexistent, or commented-out Explore name is used in a data test's
explore_source
subparameter. - A data test is defined in a file that does not include or is not included in the file that contains the Explore's
explore_source
definition. - An Explore with the
extension: required
parameter specification is used as theexplore_source
of a data test.
filters_expression
parameter was used with any measure type other than the following: count
, sum
, average
, or count_distinct
.Field references an aggregate but is specified as a dimension. If you want to use aggregations such as sum, average, count, use a measure type instead.
sql
parametersql_table_name
and derived_table
parameters defined. A view can only reference one table — either an existing schema in the database connection with sql_table_name
, or a new table with derived_table
.Persistent Native Derived Table for view (?) has an explore source (?) that has access filters. Persisting this table may result in unexpected behavior.
access_filter
parameter that references user attributes.- A
distribution_style
parameter is used for a dialect that does not support that parameter - A
cluster_keys
parameter is used for a dialect that does not support that parameter - A
sql_always_where
parameter is defined in ajoin
instead of anexplore
. - Timeframes defined in a
dimension_group
are not oftype: time
. - A
sql_distinct_key
parameter is defined in a dimension instead of a measure.
primary_key: yes
, or an extending view specifies a new dimension as a primary key with primary_key: yes
.Persistent Native Derived Table for view (?) references user attributes. Persisting this table may result in unexpected behavior.
explore
with an access_filter
or sql_always_where
parameter referencing user attributes.No map layer named (?) is defined. Must be one of countries, uk_postcode_areas, us_counties_fips, us_states, us_zipcode_tabulation_areas
map_layer_name
when there is no map layer defined in all models in which the field's view is included. For example, a view is included in multiple models, but the map layer is defined in only one model.index
in which a PDT or an aggregate table column has not been specified.sql
parameter
. This can be caused by one of the following conditions: - There is a typo in the table or column name that is referenced in a
sql
parameter. - The underlying data in the database, for example, a column name, has changed.