{"record":{"id":"74a2c86445c6d734","repo":"cube-js/cube","slug":"cubeandname-1-not-found-for-path-path","errorCode":null,"errorMessage":"'${cubeAndName[1]}' not found for path '${path}'","messagePattern":"'(.+?)' not found for path '(.+?)'","errorType":"validation","errorClass":"UserError","httpStatus":null,"severity":"error","filePath":"packages/cubejs-schema-compiler/src/compiler/CubeEvaluator.ts","lineNumber":1092,"sourceCode":"\n    if (!path) {\n      throw new Error('Path can\\'t be undefined');\n    }\n\n    const cubeAndName = Array.isArray(path) ? path : path.split('.');\n    const cube = this.evaluatedCubes[cubeAndName[0]];\n    if (cube === undefined) {\n      throw new UserError(`Cube '${cubeAndName[0]}' not found for path '${path}'`);\n    }\n\n    const typeMembers = cube[type];\n    if (typeMembers === undefined) {\n      throw new UserError(`${type} not defined for path '${path}'`);\n    }\n\n    const member = typeMembers[cubeAndName[1]];\n    if (member === undefined) {\n      throw new UserError(`'${cubeAndName[1]}' not found for path '${path}'`);\n    }\n\n    return member as EvaluatedCube[T][string];\n  }\n\n  public parsePath(type: 'measures' | 'dimensions' | 'segments' | 'preAggregations', path: string): string[] {\n    // Should throw UserError in case of parse error\n    this.byPath(type, path);\n    return path.split('.');\n  }\n\n  public isRbacEnabledForCube(cube: any): boolean {\n    return cube.accessPolicy?.length;\n  }\n\n  public isRbacEnabled(): boolean {\n    if (this.isRbacEnabledCache === null) {\n      this.isRbacEnabledCache = this.cubeNames().some(","sourceCodeStart":1074,"sourceCodeEnd":1110,"githubUrl":"https://github.com/cube-js/cube/blob/7d981676b36392fec34088b9afab6bdcad40207c/packages/cubejs-schema-compiler/src/compiler/CubeEvaluator.ts#L1074-L1110","documentation":"The final member-resolution UserError in CubeEvaluator.byPath: the cube and its type members collection exist, but the specific member name (cubeAndName[1]) is not among them. This is the common 'member not found' case — a query or join references a measure/dimension/segment that does not exist on that cube (typo, wrong cube, or member removed from the schema). The input at fault is a path whose member name has no definition in the cube.","triggerScenarios":"Thrown at packages/cubejs-schema-compiler/src/compiler/CubeEvaluator.ts:1092 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Correct the member name in the path — the cube exists but has no measure/dimension/segment with that name","Check for typos, renamed members, or references to members removed from the data model","If referencing another cube's member, use the fully qualified 'CubeName.memberName' path"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7d981676b36392fec34088b9afab6bdcad40207c","analyzedAt":"2026-09-02T03:45:10.400Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T15:18:49.778Z"}