下表汇总了 Looker 中显示的一些常见错误消息、解释了这些消息的根本原因及出现这些消息的位置,以及问题排查资源。系统会根据向 Looker 支持团队报告这些错误的频率显示错误,这些错误会按降序排列,支持请求数量最多的放在顶部。
Location 列指明了错误消息在 Looker 中的显示位置,其中包含以下选项(某些错误可能出现在产品的多个位置):
IDE = LookML 验证器/IDE
Ex = 探索
SQL = SQL Runner
LD = LookML 信息中心
D = 信息中心
S = 时间表
错误消息 | 位置 | 可能的原因 | 问题排查资源 |
---|---|---|---|
Variable not found (?).
|
IDE |
|
|
Inaccessible view (?). (?) is not accessible in explore (?). Check for missing joins in explore (?).
|
IDE |
|
|
Unknown or inaccessible field (?). Check for typos or append a timeframe to the name if the field is type time.
|
IDE |
错误 Inaccessible view (?). (?) is not accessible in explore (?). Check for missing joins in explore (?). 列出的任何可能原因都可能适用,外加以下原因:
|
|
Unknown view (?).
|
IDE Ex SQL |
|
|
Unknown view (?). View does not exist in model (?). Check for typos or missing include statements.
|
IDE Ex SQL |
|
|
Unknown field (?) in filter
|
IDE |
|
|
Measures with Looker aggregations (sum, average, min, max, list types) may not reference other measures.
|
IDE | 测量在另一个汇总类型测量的 SQL 定义内引用。 | |
Unknown view (?). View (?) does not exist in model (?). Check for typos or missing include statements in (?).
|
IDE | 视图未包含在模型文件中,或者它包含在模型文件中但拼写错误。 | |
Can't construct persistent derived table (?), connection (?) could not be registered
|
IDE Ex |
|
|
Unknown or excluded suggest_dimension (?) in field (?)
|
IDE |
|
|
A view named (?) has been defined multiple times. Each view in a model must have a unique name.
|
IDE | 具有相同名称的视图会在同一模型中引用,包括导入项目中的视图。视图名称在模型中必须是唯一的。 |
view 参数参考
|
This include does not match any files
|
IDE |
|
|
SQL Dialect does not support Symmetric Aggregates with percentiles, field ignored.
|
Ex |
数据库方言不支持使用对称聚合来衡量 type: median 或 type: percentile 。 |
|
Using project_name or local_dependency in manifest.lkml without Local Project Import enabled is not supported. Params ignored.
|
IDE | 停用 Local Project Import Labs 功能时,清单文件中使用本地项目导入参数。除非启用了 Local Project Import Labs 功能,否则不能在清单文件中使用本地项目导入参数。 | |
Cannot use native derived table (?) with bind_all_filters outside of its source explore (?)
|
IDE Ex |
带有 bind_all_filters 参数的原生派生表 (NDT) 会与 explore_source 参数中定义的“探索”之外的一个或多个探索相联接。
|
使用 bind_all_filters
|
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.
|
IDE |
使用 sql 参数来衡量 type: count 。计数类型测量通过视图文件中声明的主键执行计数,不需要 sql 参数。 |
|
An explore named (?) has been defined multiple times. Each explore in a model must have a unique name.
|
IDE LD |
|
|
Unknown view '(?)' --> Did you '- include: (?)' in (?).model.lookml?
|
IDE |
|
|
Unknown field '(?)'
|
IDE Ex |
|
|
Cannot use (?) as access filter since any user can edit their own value.
|
Ex |
在探索的 access_filter 参数中使用将“用户访问权限”选项设置为“修改”的用户属性。 |
|
label_from_parameter of (?) must refer to a parameter.
|
IDE Ex |
|
|
Cannot use user-editable attribute (?) for access_grant (?)
|
IDE Ex |
将用户访问权限选项设置为修改的用户属性用于模型文件的 access_grant 参数。 |
|
datagroup (?) has a sql_trigger. This is not allowed in models with a parameterized connection.
|
IDE | 数据库连接使用用户属性作为数据库登录凭据,并且未针对 PDT 进程为单独的数据库用户配置 PDT 替换列。 | |
relationship missing, assumed to be many_to_one.
|
IDE |
未定义联接的 relationship 。如果未指定 relationship ,Looker 默认假定存在 many-to-one 关系。 |
relationship 参数参考
|
No distribution_style specified in persistent derived table (?). Using default distribution style (?).
|
IDE |
Redshift 连接 PDT 的 derived_table 定义中未指定 distribution_style 参数。如果没有指定 distribution_style ,Looker 默认为 ALL 。
|
distribution_style 参数参考
|
always_filter: unknown filter field '(?)'
|
IDE |
|
|
The location field type requires both sql_latitude and sql_longitude.
|
IDE |
type: location 的字段缺少 sql_latitude 或 sql_longitude 子参数。位置类型字段必须同时提供这两个字段。
|
location 字段类型参考文档
|
Missing required sql_step in create_process of derived table '(?)'.
|
IDE |
|
create_process 参数参考
|
Can't construct aggregate table (?), temporary schema for (?) is unset.
|
IDE Ex | 没有在管理面板的连接设置页面上为该连接设置永久性派生表设置,并且/或者未在临时数据库设置中指定任何临时数据库架构。 | |
Can't construct aggregate table (?), connection (?) could not be registered.
|
IDE Ex | 未在管理面板的连接的连接设置页面上设定临时数据库设置,或者 Looker 没有对临时数据库设置中指定的临时数据库的适当权限。 | |
Unknown view (?) referenced by explore (?)
|
IDE |
|
|
The location field type does not use the sql parameter. Please use sql_latitude and sql_longitude instead.
|
IDE |
在 type: location 的字段中使用了 sql 参数。位置类型字段需要 sql_latitude 和 sql_longitude 子参数,而不是 sql 参数。 |
location 字段类型参考文档
|
A list_field must be defined for measures of type list.
|
IDE Ex |
如需根据字段生成列表,必须为 type: list 的测量指定该字段。 |
list 字段类型参考文档
|
Query failed with unexpected exception (?)
|
IDE Ex SQL LD D S |
|
|
Looker is having trouble connecting to your database.
|
Ex SQL | 已达到连接池的上限,排队的查询已在连接池超时期限过后超时。 | |
Missing dates/values for '(?)' were not filled.
|
Ex |
|
填充缺失的日期和值 |
filters: ` is not supported for measures of non-aggregate type '(?)'
|
IDE Ex |
filters 参数与除以下类型之外的任何测量类型一起使用:count 、sum 、average 和 count_distinct 。 |
|
Unknown source explore (?) in lookml test (?) declaration.
|
IDE |
|
|
filter_expression: is not supported for measures of non-aggregate type '(?)'
|
IDE Ex |
filters_expression 参数与除 count 、sum 、average 或 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.
|
IDE Ex |
维度在其 sql 参数中引用测量或其他汇总
|
|
Cannot specify both sql_table_name and derived_table for view (?)
|
IDE |
视图定义了 sql_table_name 和 derived_table 形参。一个视图只能引用一个表,可以是使用 sql_table_name 的数据库连接中的现有架构,也可以是使用 derived_table 的新表。
|
|
Persistent Native Derived Table for view (?) has an explore source (?) that has access filters. Persisting this table may result in unexpected behavior.
|
IDE |
持久 NDT 基于采用 access_filter 参数引用用户属性的“探索”功能。 |
|
Unknown or unexpected parameter "(?)" in (?).
|
IDE |
|
|
Could not find the constant `
|
IDE | 常量从导入项目中的导入项目引用,并且仅在导入的项目中定义。常量只能在定义常量的项目中引用。此常量需要在清单文件中重新定义。 | 在导入的项目的文件中使用常量 |
Multiple primary key definitions for view '(?)': '(?)' and '(?)'
|
IDE |
视图文件中有多个主键。您可以使用 primary_key: yes 将多个维度指定为主键,或者使用 primary_key: yes 将新维度指定为主键。
|
|
Persistent Native Derived Table for view (?) references user attributes. Persisting this table may result in unexpected behavior.
|
IDE |
持久性 NDT 或汇总感知表基于 explore ,其中有 access_filter 或 sql_always_where 参数引用了用户属性。
|
|
No map layer named (?) is defined. Must be one of countries, uk_postcode_areas, us_counties_fips, us_states, us_zipcode_tabulation_areas
|
IDE |
如果未在包含字段视图的所有模型中定义地图图层,维度会引用 map_layer_name 的地图图层。例如,一个视图包含在多个模型中,但地图图层仅在一个模型中定义。 |
|
Persistent derived table (?) should include at least one index
|
IDE |
PDT 或聚合表定义包含未指定 PDT 或聚合表列的 index 。 |
|
The x database encountered an error while running this query.
|
Ex SQL |
数据库找不到字段的 sql 参数引用的列。这可能是由以下某个情况导致的:
|
Looker 中的常见 SQL 错误问题排查提示(社区帖子) |
Render job (?) failed [orphaned job]
|
S | Looker 实例在预定作业运行期间不可用。在版本更新和计划维护期间可能会发生这种情况。 | 针对 Looker 托管的服务的 Google 维护政策 |