{"record":{"id":"e185dc9faad76ec1","repo":"pentaho/pentaho-kettle","slug":"ldapinputmeta-exception-errorreadingrepository","errorCode":"LDAPInputMeta.Exception.ErrorReadingRepository","errorMessage":"LDAPInputMeta.Exception.ErrorReadingRepository","messagePattern":"LDAPInputMeta\\.Exception\\.ErrorReadingRepository","errorType":"exception","errorClass":"KettleException","httpStatus":null,"severity":"error","filePath":"plugins/ldap/impl/src/main/java/org/pentaho/di/trans/steps/ldapinput/LDAPInputMeta.java","lineNumber":819,"sourceCode":"        field.setType( ValueMetaFactory.getIdForValueMeta( rep.getStepAttributeString( id_step, i, \"field_type\" ) ) );\n        field.setFormat( rep.getStepAttributeString( id_step, i, \"field_format\" ) );\n        field.setCurrencySymbol( rep.getStepAttributeString( id_step, i, \"field_currency\" ) );\n        field.setDecimalSymbol( rep.getStepAttributeString( id_step, i, \"field_decimal\" ) );\n        field.setGroupSymbol( rep.getStepAttributeString( id_step, i, \"field_group\" ) );\n        field.setLength( (int) rep.getStepAttributeInteger( id_step, i, \"field_length\" ) );\n        field.setPrecision( (int) rep.getStepAttributeInteger( id_step, i, \"field_precision\" ) );\n        field.setTrimType( LDAPInputField.getTrimTypeByCode( rep.getStepAttributeString(\n          id_step, i, \"field_trim_type\" ) ) );\n        field.setRepeated( rep.getStepAttributeBoolean( id_step, i, \"field_repeat\" ) );\n\n        inputFields[i] = field;\n      }\n      searchScope =\n        getSearchScopeByCode( Const.NVL(\n          rep.getStepAttributeString( id_step, \"searchScope\" ),\n          getSearchScopeCode( LDAPConnection.SEARCH_SCOPE_SUBTREE_SCOPE ) ) );\n    } catch ( Exception e ) {\n      throw new KettleException(\n        BaseMessages.getString( PKG, \"LDAPInputMeta.Exception.ErrorReadingRepository\" ), e );\n    }\n  }\n\n  public static String getSearchScopeDesc( int i ) {\n    if ( i < 0 || i >= searchScopeDesc.length ) {\n      return searchScopeDesc[0];\n    }\n    return searchScopeDesc[i];\n  }\n\n  public static int getSearchScopeByDesc( String tt ) {\n    if ( tt == null ) {\n      return 0;\n    }\n\n    for ( int i = 0; i < searchScopeDesc.length; i++ ) {\n      if ( searchScopeDesc[i].equalsIgnoreCase( tt ) ) {","sourceCodeStart":801,"sourceCodeEnd":837,"githubUrl":"https://github.com/pentaho/pentaho-kettle/blob/f3058517a153da500bf4551f46d79b91bf8ec552/plugins/ldap/impl/src/main/java/org/pentaho/di/trans/steps/ldapinput/LDAPInputMeta.java#L801-L837","documentation":"Thrown while loading LDAP Input step attributes from the Pentaho repository (readRep path): any repository access or attribute-read failure is wrapped in this KettleException with the cause chained. It indicates the step metadata could not be read from the repository database.","triggerScenarios":"readRep()/loadStepAttributes querying rep.getStepAttributeString(id_step, ...) throws — repository connection down, schema/tables missing or corrupted, or id_step not found in the repository tables.","commonSituations":"Repository database unreachable (DB restarted, network issue), repository schema version mismatch after a PDI upgrade, orphaned step rows referencing a deleted transformation.","solutions":["Check repository database connectivity and credentials (Test button in the repository connection dialog).","Run the repository upgrade/repair scripts matching your PDI version (r_step_attribute table integrity).","Re-save the transformation into the repository to rewrite the step attributes.","Review the chained cause for the underlying SQL/repository error code."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"// before loading from repository\nif (!rep.connect(\"test\").isConnected()) throw new IllegalStateException(\"Repository is not reachable\");","typeGuard":null,"tryCatchPattern":"try { meta.readRep(rep, objectId, databases, metaStore); } catch (KettleException e) { logError(\"Repository read failed: \" + e.getCause().getMessage(), e); }","preventionTips":["Test repository connectivity before opening transformations","Apply repository schema upgrade scripts after every PDI upgrade","Re-save transformations after repository restores to rebuild step attributes"],"tags":["repository","database","metadata"],"backgroundTag":"database-query-failed","analyzedSha":"f3058517a153da500bf4551f46d79b91bf8ec552","analyzedAt":"2026-09-13T14:04:16.340Z","contentChangedAt":"2026-09-13T14:04:16.340Z","schemaVersion":2},"datasetVersion":"2026-09-20T23:17:15.980Z"}