{"record":{"id":"754f82abef72cbcd","repo":"pentaho/pentaho-kettle","slug":"edi2xml-exception-unexpectederrorinreadingstepinfo","errorCode":"Edi2Xml.Exception.UnexpectedErrorInReadingStepInfo","errorMessage":"Edi2Xml.Exception.UnexpectedErrorInReadingStepInfo","messagePattern":"Edi2Xml\\.Exception\\.UnexpectedErrorInReadingStepInfo","errorType":"exception","errorClass":"KettleException","httpStatus":null,"severity":"error","filePath":"plugins/edi2xml/impl/src/main/java/org/pentaho/di/trans/steps/edi2xml/Edi2XmlMeta.java","lineNumber":107,"sourceCode":"  @Override\n  public void loadXML( Node stepnode, List<DatabaseMeta> databases, IMetaStore metaStore ) throws KettleXMLException {\n\n    try {\n      setInputField( XMLHandler.getNodeValue( XMLHandler.getSubNode( stepnode, \"inputfield\" ) ) );\n      setOutputField( XMLHandler.getNodeValue( XMLHandler.getSubNode( stepnode, \"outputfield\" ) ) );\n    } catch ( Exception e ) {\n      throw new KettleXMLException( \"Template Plugin Unable to read step info from XML node\", e );\n    }\n\n  }\n\n  @Override\n  public void readRep( Repository rep, IMetaStore metaStore, ObjectId id_step, List<DatabaseMeta> databases ) throws KettleException {\n    try {\n      inputField = rep.getStepAttributeString( id_step, \"inputfield\" );\n      outputField = rep.getStepAttributeString( id_step, \"outputfield\" );\n    } catch ( Exception e ) {\n      throw new KettleException( BaseMessages\n        .getString( PKG, \"Edi2Xml.Exception.UnexpectedErrorInReadingStepInfo\" ), e );\n    }\n  }\n\n  @Override\n  public void saveRep( Repository rep, IMetaStore metaStore, ObjectId id_transformation, ObjectId id_step ) throws KettleException {\n    try {\n      rep.saveStepAttribute( id_transformation, id_step, \"inputfield\", inputField );\n      rep.saveStepAttribute( id_transformation, id_step, \"outputfield\", outputField );\n    } catch ( Exception e ) {\n      throw new KettleException( BaseMessages\n        .getString( PKG, \"Edi2Xml.Exception.UnableToSaveStepInfoToRepository\" )\n        + id_step, e );\n    }\n  }\n\n  @Override\n  public void getFields( Bowl bowl, RowMetaInterface r, String origin, RowMetaInterface[] info, StepMeta nextStep,","sourceCodeStart":89,"sourceCodeEnd":125,"githubUrl":"https://github.com/pentaho/pentaho-kettle/blob/f3058517a153da500bf4551f46d79b91bf8ec552/plugins/edi2xml/impl/src/main/java/org/pentaho/di/trans/steps/edi2xml/Edi2XmlMeta.java#L89-L125","documentation":"Edi2XmlMeta.readRep loads the step's input/output field names from the Kettle repository using getStepAttributeString. Any exception is wrapped in a KettleException with the localized message 'Edi2Xml.Exception.UnexpectedErrorInReadingStepInfo'. It signals an unexpected repository error while reading step info.","triggerScenarios":"Calling readRep when the repository throws (connection failure, missing rows for id_step, DB error) during the two getStepAttributeString calls.","commonSituations":"Repository DB down or migrated; id_step pointing at deleted rows; insufficient SELECT permissions on R_STEP_ATTRIBUTE.","solutions":["Check the cause exception for the underlying repository/SQL error","Verify repository connectivity and credentials","Confirm R_STEP_ATTRIBUTE rows exist for the given id_step","Reload the transformation metadata after restoring the repository"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"try { meta.readRep(rep, metaStore, idStep, databases); } catch (KettleException e) { logger.error(\"readRep failed for id_step=\" + idStep, e); }","preventionTips":["Verify repository DB connectivity before loading transformations","Keep repository schema versions compatible with the PDI client","Check R_STEP_ATTRIBUTE rows when migrating repositories"],"tags":["repository","database","pdi","step-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"}