{"record":{"id":"4ea9763b9c535b06","repo":"pentaho/pentaho-kettle","slug":"cubeinputmeta-exception-unexpectederrorwhilereadingstepinfo","errorCode":"CubeInputMeta.Exception.UnexpectedErrorWhileReadingStepInfo","errorMessage":"CubeInputMeta.Exception.UnexpectedErrorWhileReadingStepInfo","messagePattern":"CubeInputMeta\\.Exception\\.UnexpectedErrorWhileReadingStepInfo","errorType":"exception","errorClass":"KettleException","httpStatus":null,"severity":"error","filePath":"plugins/core/impl/src/main/java/org/pentaho/di/trans/steps/cubeinput/CubeInputMeta.java","lineNumber":216,"sourceCode":"    retval.append( \"    \" ).append( XMLHandler.addTagValue( \"addfilenameresult\", addfilenameresult ) );\n\n    return retval.toString();\n  }\n\n  @Override public void readRep( Repository rep, IMetaStore metaStore, ObjectId id_step, List<DatabaseMeta> databases )\n    throws KettleException {\n    try {\n      filename = rep.getStepAttributeString( id_step, \"file_name\" );\n      try {\n        rowLimit = rep.getStepAttributeString( id_step, \"limit\" );\n      } catch ( KettleException readOldAttributeType ) {\n        // PDI-12897\n        rowLimit = String.valueOf( rep.getStepAttributeInteger( id_step, \"limit\" ) );\n      }\n      addfilenameresult = rep.getStepAttributeBoolean( id_step, \"addfilenameresult\" );\n\n    } catch ( Exception e ) {\n      throw new KettleException( BaseMessages.getString(\n        PKG, \"CubeInputMeta.Exception.UnexpectedErrorWhileReadingStepInfo\" ), e );\n    }\n  }\n\n  @Override public void saveRep( Repository rep, IMetaStore metaStore, ObjectId id_transformation, ObjectId id_step )\n    throws KettleException {\n    try {\n      rep.saveStepAttribute( id_transformation, id_step, \"file_name\", filename );\n      rep.saveStepAttribute( id_transformation, id_step, \"limit\", rowLimit );\n      rep.saveStepAttribute( id_transformation, id_step, \"addfilenameresult\", addfilenameresult );\n\n    } catch ( KettleException e ) {\n      throw new KettleException( BaseMessages.getString( PKG, \"CubeInputMeta.Exception.UnableToSaveStepInfo\" )\n        + id_step, e );\n    }\n  }\n\n  @Override public void check( List<CheckResultInterface> remarks, TransMeta transMeta, StepMeta stepMeta,","sourceCodeStart":198,"sourceCodeEnd":234,"githubUrl":"https://github.com/pentaho/pentaho-kettle/blob/f3058517a153da500bf4551f46d79b91bf8ec552/plugins/core/impl/src/main/java/org/pentaho/di/trans/steps/cubeinput/CubeInputMeta.java#L198-L234","documentation":"CubeInputMeta.readRep loads the step configuration from a repository. Any exception while reading step attributes is wrapped in this KettleException indicating an unexpected error while reading step info from the repository.","triggerScenarios":"readRep queries rep.getStepAttributeString/Integer/Boolean for the step's file name, limit, and addfilenameresult attributes and an exception is thrown (repository connectivity, missing step row, corrupt repository data).","commonSituations":"Repository database unreachable or dropped mid-load; step metadata rows deleted from the repository; version mismatch between client and repository schema.","solutions":["Verify repository connection settings and that the repository database is reachable.","Check the wrapped cause exception for the concrete repository error.","Re-save the transformation in the repository to restore step attributes.","Verify the step's id_step corresponds to an existing, complete step record."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"try {\n  meta.readRep( rep, metaStore, id_step, databases );\n} catch ( KettleException e ) {\n  logError( \"Repository read failed for CubeInput step — check repository connectivity: \" + e.getMessage(), e );\n}","preventionTips":["Test repository connectivity before loading transformations.","Back up repository metadata regularly.","Keep repository schema and PDI client versions in sync."],"tags":["kettle","pdi","repository","persistence"],"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"}