{"record":{"id":"8c42cb8dd0c64246","repo":"pentaho/pentaho-kettle","slug":"xsltmeta-exception-unexpectederrorinreadingstepinfo","errorCode":null,"errorMessage":"XsltMeta.Exception.UnexpectedErrorInReadingStepInfo","messagePattern":"XsltMeta\\.Exception\\.UnexpectedErrorInReadingStepInfo","errorType":"exception","errorClass":"KettleException","httpStatus":null,"severity":"error","filePath":"plugins/xml/core/src/main/java/org/pentaho/di/trans/steps/xslt/XsltMeta.java","lineNumber":375,"sourceCode":"      } else {\n        xslFieldIsAFile = \"true\".equalsIgnoreCase( isAfile );\n      }\n      xslFactory = rep.getStepAttributeString( id_step, \"xslfactory\" );\n\n      int nrparams = rep.countNrStepAttributes( id_step, \"param_name\" );\n      int nroutputprops = rep.countNrStepAttributes( id_step, \"output_property_name\" );\n      allocate( nrparams, nroutputprops );\n\n      for ( int i = 0; i < nrparams; i++ ) {\n        parameterField[i] = rep.getStepAttributeString( id_step, i, \"param_field\" );\n        parameterName[i] = rep.getStepAttributeString( id_step, i, \"param_name\" );\n      }\n      for ( int i = 0; i < nroutputprops; i++ ) {\n        outputPropertyName[i] = rep.getStepAttributeString( id_step, i, \"output_property_name\" );\n        outputPropertyValue[i] = rep.getStepAttributeString( id_step, i, \"output_property_value\" );\n      }\n    } catch ( Exception e ) {\n      throw new KettleException( BaseMessages.getString( PKG, \"XsltMeta.Exception.UnexpectedErrorInReadingStepInfo\" ),\n          e );\n    }\n  }\n\n  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, \"xslfilename\", xslFilename );\n      rep.saveStepAttribute( id_transformation, id_step, \"fieldname\", fieldName );\n      rep.saveStepAttribute( id_transformation, id_step, \"resultfieldname\", resultFieldname );\n\n      rep.saveStepAttribute( id_transformation, id_step, \"xslfilefield\", xslFileField );\n\n      rep.saveStepAttribute( id_transformation, id_step, \"xslfilefielduse\", xslFileFieldUse );\n      rep.saveStepAttribute( id_transformation, id_step, \"xslfieldisafile\", xslFieldIsAFile );\n\n      rep.saveStepAttribute( id_transformation, id_step, \"xslfactory\", xslFactory );\n","sourceCodeStart":357,"sourceCodeEnd":393,"githubUrl":"https://github.com/pentaho/pentaho-kettle/blob/f3058517a153da500bf4551f46d79b91bf8ec552/plugins/xml/core/src/main/java/org/pentaho/di/trans/steps/xslt/XsltMeta.java#L357-L393","documentation":"Thrown by XsltMeta.readRep when an exception occurs while reading the step's settings from a repository database. All getStepAttributeString/int calls are wrapped and rethrown as a KettleException. Indicates the persisted step attributes in the repository are unreadable or inconsistent.","triggerScenarios":"Repository connection/schema issues during readRep: missing r_step_attribute rows, database errors, null values where numeric parse expected, or repository metadata corruption for this step's id.","commonSituations":"Repository schema version mismatch after a Pentaho upgrade; interrupted repository save left partial attributes; DB connectivity failures mid-read; manually editing repository tables.","solutions":["Check the cause exception for the underlying repository/DB error and fix connectivity or schema issues","Run the repository upgrade/repair tooling for your Pentaho version","Re-save the step (open and OK the dialog) to rewrite its attributes, or recreate the step","Restore affected repository tables from backup"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"try {\n    StepMetaInterface meta = stepMeta.getStepMetaInterface();\n    meta.readRep(rep, metaStore, idStep, databases);\n} catch (KettleException e) {\n    log.error(\"Repository read failed for step: \" + e.getMessage(), e.getCause());\n    // verify repository connectivity/schema before retry\n}","preventionTips":["Keep repository schema aligned with the Pentaho version (run upgrade scripts)","Avoid manual edits to repository attribute tables","Back up repository tables before upgrades"],"tags":["kettle","repository","step-metadata","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"}