{"record":{"id":"7036611e450896dc","repo":"pentaho/pentaho-kettle","slug":"updatemeta-exception","errorCode":null,"errorMessage":"UpdateMeta.Exception.UnexpectedErrorReadingStepInfoFromRepository","messagePattern":"UpdateMeta\\.Exception\\.UnexpectedErrorReadingStepInfoFromRepository","errorType":"exception","errorClass":"KettleException","httpStatus":null,"severity":"error","filePath":"engine/src/main/java/org/pentaho/di/trans/steps/update/UpdateMeta.java","lineNumber":531,"sourceCode":"      int nrValueRename = rep.countNrStepAttributes( id_step, \"value_rename\" );\n\n      int nrvalues = Ints.max( nrValueName, nrValueRename );\n\n      allocate( nrkeys, nrvalues );\n\n      for ( int i = 0; i < nrkeys; i++ ) {\n        keyStream[i] = rep.getStepAttributeString( id_step, i, \"key_name\" );\n        keyLookup[i] = rep.getStepAttributeString( id_step, i, \"key_field\" );\n        keyCondition[i] = rep.getStepAttributeString( id_step, i, \"key_condition\" );\n        keyStream2[i] = rep.getStepAttributeString( id_step, i, \"key_name2\" );\n      }\n\n      for ( int i = 0; i < nrvalues; i++ ) {\n        updateLookup[i] = rep.getStepAttributeString( id_step, i, \"value_name\" );\n        updateStream[i] = rep.getStepAttributeString( id_step, i, \"value_rename\" );\n      }\n    } catch ( Exception e ) {\n      throw new KettleException( BaseMessages.getString(\n        PKG, \"UpdateMeta.Exception.UnexpectedErrorReadingStepInfoFromRepository\" ), 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.saveDatabaseMetaStepAttribute( id_transformation, id_step, \"id_connection\", databaseMeta );\n      rep.saveStepAttribute( id_transformation, id_step, \"skip_lookup\", skipLookup );\n      rep.saveStepAttribute( id_transformation, id_step, \"commit\", commitSize );\n      rep.saveStepAttribute( id_transformation, id_step, \"use_batch\", useBatchUpdate );\n      rep.saveStepAttribute( id_transformation, id_step, \"schema\", schemaName );\n      rep.saveStepAttribute( id_transformation, id_step, \"table\", tableName );\n\n      rep.saveStepAttribute( id_transformation, id_step, \"error_ignored\", errorIgnored );\n      rep.saveStepAttribute( id_transformation, id_step, \"ignore_flag_field\", ignoreFlagField );\n\n      for ( int i = 0; i < keyStream.length; i++ ) {","sourceCodeStart":513,"sourceCodeEnd":549,"githubUrl":"https://github.com/pentaho/pentaho-kettle/blob/f3058517a153da500bf4551f46d79b91bf8ec552/engine/src/main/java/org/pentaho/di/trans/steps/update/UpdateMeta.java#L513-L549","documentation":"Outer catch-all in UpdateMeta.readRep: an unexpected exception occurred while reading the update step's key/value attributes from the repository (after keys and values were allocated). The cause is attached; testReadRepAllocatesSizeProperly exercises this code path.","triggerScenarios":"readRep -> rep.getStepAttributeString calls throw (repository connectivity, missing step row, corrupt r_step_attribute data) while loading the transformation from a database repository.","commonSituations":"Database repository schema version mismatch; corrupted or partially deleted step attributes; repository connection dropped mid-load.","solutions":["Check the wrapped cause for the repository error and verify repository connectivity","Re-open the transformation in Spoon and re-save the Update step to rewrite its attributes","Run repository upgrade/repair scripts matching your PDI version","Export the transformation to XML as a fallback and fix it there"],"exampleFix":"// before\nr_step_attribute row for 'value_name' deleted\n// after\nre-save step via Spoon or run repository repair so attributes exist","handlingStrategy":"try-catch","validationCode":"// Before load, verify repository reachable and step row present:\n// ObjectId id = repository.getStepID(id_transformation, stepName);","typeGuard":null,"tryCatchPattern":"try { transMeta.readRep(repository, ...); } catch (KettleException e) { log.error(\"Repository read failed: \" + e.getCause(), e); }","preventionTips":["Keep repository schema scripts in sync with PDI version","Test repository connection before opening transformations","Back up repository tables before repairs/migrations"],"tags":["repository","metadata","database"],"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"}