{"record":{"id":"71b0d4bebfc8e565","repo":"hibernate/hibernate-orm","slug":"table-group-for-navigable-path-not-found-navi","errorCode":null,"errorMessage":"Table group for navigable path not found: \" + navigablePath","messagePattern":"Table group for navigable path not found: \" \\+ navigablePath","errorType":"exception","errorClass":"NoSuchElementException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/sql/ast/tree/from/AbstractTableGroup.java","lineNumber":139,"sourceCode":"\t\tint i = 0;\n\t\tif ( tableGroupJoins != null ) {\n\t\t\tfor ( ; i < tableGroupJoins.size(); i++ ) {\n\t\t\t\tif ( tableGroupJoins.get( i ).getNavigablePath() == navigablePath ) {\n\t\t\t\t\ttableGroupJoins.add( i, join );\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ti = 0;\n\t\tif ( nestedTableGroupJoins != null ) {\n\t\t\tfor ( ; i < nestedTableGroupJoins.size(); i++ ) {\n\t\t\t\tif ( nestedTableGroupJoins.get( i ).getNavigablePath() == navigablePath ) {\n\t\t\t\t\tnestedTableGroupJoins.add( i, join );\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tthrow new NoSuchElementException(\"Table group for navigable path not found: \" + navigablePath);\n\t}\n\n\t@Override\n\tpublic void addNestedTableGroupJoin(TableGroupJoin join) {\n\t\tif ( nestedTableGroupJoins == null ) {\n\t\t\tnestedTableGroupJoins = new ArrayList<>();\n\t\t}\n\t\tassert !nestedTableGroupJoins.contains( join );\n\t\tnestedTableGroupJoins.add( join );\n\t}\n\n\t@Override\n\tpublic void visitTableGroupJoins(Consumer<TableGroupJoin> consumer) {\n\t\tif ( tableGroupJoins != null ) {\n\t\t\ttableGroupJoins.forEach( consumer );\n\t\t}\n\t}\n","sourceCodeStart":121,"sourceCodeEnd":157,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/sql/ast/tree/from/AbstractTableGroup.java#L121-L157","documentation":"Error \"Table group for navigable path not found: \" + navigablePath\" thrown in hibernate/hibernate-orm.","triggerScenarios":"A table group lookup by navigable path fails: \" + navigablePath.","commonSituations":"Dereferencing an association or attribute path in HQL/Criteria whose table group was not created in the FROM clause, often from implicit joins on unmapped or mis-mapped paths.","solutions":["The query references a navigable path for which no table group was registered in the from-clause. Ensure the association/join is declared before it is dereferenced in the query.","If the path is produced internally by Hibernate, report it as a Hibernate bug with the query and mappings."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fad1729dce015f908198d57a8d80274a30f905a5","analyzedAt":"2026-08-22T04:13:57.527Z","schemaVersion":2},"datasetVersion":"2026-08-22T09:17:25.309Z"}