{"record":{"id":"971e98476a724b8e","repo":"hibernate/hibernate-orm","slug":"no-namedstoredprocedurequery-was-found-with-that","errorCode":null,"errorMessage":"No @NamedStoredProcedureQuery was found with that name : {name}","messagePattern":"No @NamedStoredProcedureQuery was found with that name : (.+?)","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java","lineNumber":2722,"sourceCode":"\t\t\tdefault:\n\t\t\t\tSESSION_LOGGER.tracef( \"Unsupported property : %s\", propertyName  );\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\n\t// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n\t@Override\n\t@Nonnull\n\tpublic ProcedureCall createNamedStoredProcedureQuery(@Nonnull String name) {\n\t\tcheckOpen();\n\t\ttry {\n\t\t\tfinal var memento =\n\t\t\t\t\tgetFactory().getQueryEngine().getNamedObjectRepository()\n\t\t\t\t\t\t\t.getCallableQueryMemento( name );\n\t\t\tif ( memento == null ) {\n\t\t\t\tthrow new IllegalArgumentException( \"No @NamedStoredProcedureQuery was found with that name : \" + name );\n\t\t\t}\n\t\t\treturn memento.makeProcedureCall( this );\n\t\t}\n\t\tcatch ( RuntimeException e ) {\n\t\t\tthrow getExceptionConverter().convert( e );\n\t\t}\n\t}\n\n\t@Override\n\t@Nonnull\n\tpublic ProcedureCall createStoredProcedureQuery(@Nonnull String procedureName) {\n\t\ttry {\n\t\t\treturn createStoredProcedureCall( procedureName );\n\t\t}\n\t\tcatch ( RuntimeException e ) {\n\t\t\tthrow getExceptionConverter().convert( e );\n\t\t}\n\t}","sourceCodeStart":2704,"sourceCodeEnd":2740,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java#L2704-L2740","documentation":"Error \"No @NamedStoredProcedureQuery was found with that name : {name}\" thrown in hibernate/hibernate-orm.","triggerScenarios":"Thrown at hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java:2722 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Define a @NamedStoredProcedureQuery with the given name on an entity in the persistence unit, or correct the name used in createNamedStoredProcedureQuery.","Check for typos and ensure the entity declaring the named stored procedure is registered."],"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"}