{"record":{"id":"d16edc0571c1902e","repo":"pentaho/pentaho-kettle","slug":"unexpected-error-reading-step-information-from-the-d16edc","errorCode":null,"errorMessage":"Unexpected error reading step information from the repository","messagePattern":"Unexpected error reading step information from the repository","errorType":"exception","errorClass":"KettleException","httpStatus":null,"severity":"error","filePath":"engine/src/main/java/org/pentaho/di/trans/steps/parallelgzipcsv/ParGzipCsvInputMeta.java","lineNumber":245,"sourceCode":"\n      allocate( nrfields );\n\n      for ( int i = 0; i < nrfields; i++ ) {\n        inputFields[i] = new TextFileInputField();\n\n        inputFields[i].setName( rep.getStepAttributeString( id_step, i, \"field_name\" ) );\n        inputFields[i].setType( ValueMetaFactory.getIdForValueMeta( rep.getStepAttributeString( id_step, i, \"field_type\" ) ) );\n        inputFields[i].setFormat( rep.getStepAttributeString( id_step, i, \"field_format\" ) );\n        inputFields[i].setCurrencySymbol( rep.getStepAttributeString( id_step, i, \"field_currency\" ) );\n        inputFields[i].setDecimalSymbol( rep.getStepAttributeString( id_step, i, \"field_decimal\" ) );\n        inputFields[i].setGroupSymbol( rep.getStepAttributeString( id_step, i, \"field_group\" ) );\n        inputFields[i].setLength( (int) rep.getStepAttributeInteger( id_step, i, \"field_length\" ) );\n        inputFields[i].setPrecision( (int) rep.getStepAttributeInteger( id_step, i, \"field_precision\" ) );\n        inputFields[i].setTrimType( ValueMetaString.getTrimTypeByCode( rep.getStepAttributeString(\n          id_step, i, \"field_trim_type\" ) ) );\n      }\n    } catch ( Exception e ) {\n      throw new KettleException( \"Unexpected error reading step information from the repository\", 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, \"filename\", filename );\n      rep.saveStepAttribute( id_transformation, id_step, \"filename_field\", filenameField );\n      rep.saveStepAttribute( id_transformation, id_step, \"rownum_field\", rowNumField );\n      rep.saveStepAttribute( id_transformation, id_step, \"include_filename\", includingFilename );\n      rep.saveStepAttribute( id_transformation, id_step, \"separator\", delimiter );\n      rep.saveStepAttribute( id_transformation, id_step, \"enclosure\", enclosure );\n      rep.saveStepAttribute( id_transformation, id_step, \"buffer_size\", bufferSize );\n      rep.saveStepAttribute( id_transformation, id_step, \"header\", headerPresent );\n      rep.saveStepAttribute( id_transformation, id_step, \"lazy_conversion\", lazyConversionActive );\n      rep.saveStepAttribute( id_transformation, id_step, \"add_filename_result\", isaddresult );\n      rep.saveStepAttribute( id_transformation, id_step, \"parallel\", runningInParallel );\n      rep.saveStepAttribute( id_transformation, id_step, \"encoding\", encoding );","sourceCodeStart":227,"sourceCodeEnd":263,"githubUrl":"https://github.com/pentaho/pentaho-kettle/blob/f3058517a153da500bf4551f46d79b91bf8ec552/engine/src/main/java/org/pentaho/di/trans/steps/parallelgzipcsv/ParGzipCsvInputMeta.java#L227-L263","documentation":"Generic catch-all guard in readRep: it fires when any exception escapes while loading this step's metadata from the Pentaho repository — most commonly a broken repository connection, a missing/corrupt step attribute row, or ValueMetaFactory.getIdForValueMeta throwing because a stored 'field_type' string does not map to a known value meta type. The step-level 'nrfields' count and per-field attributes (name, type, format, currency, decimal symbols) read via rep.getStepAttribute* are the inputs at fault.","triggerScenarios":"Thrown at engine/src/main/java/org/pentaho/di/trans/steps/parallelgzipcsv/ParGzipCsvInputMeta.java:245 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the repository connection is alive and that the transformation was saved completely (no partially written step attributes).","Inspect the stored field attributes for this step (field_name, field_type, field_format, etc.) and correct any missing or invalid 'field_type' value so ValueMetaFactory can resolve it.","Re-open and re-save the transformation in Spoon to rewrite consistent step attributes, or restore the step configuration from a known-good export (XML/ktr).","If the error persists, enable repository debug logging to identify which exact getStepAttribute call fails before re-importing the transformation."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"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"}