{"record":{"id":"519f77d32bb78178","repo":"pentaho/pentaho-kettle","slug":"unable-to-save-step-information-to-the-repository-for-id-519f77","errorCode":null,"errorMessage":"Unable to save step information to the repository for id_step=","messagePattern":"Unable to save step information to the repository for id_step=","errorType":"exception","errorClass":"KettleException","httpStatus":null,"severity":"error","filePath":"plugins/excel/core/src/main/java/org/pentaho/di/trans/steps/excelwriter/ExcelWriterStepMeta.java","lineNumber":1126,"sourceCode":"\n      for ( int i = 0; i < outputFields.length; i++ ) {\n        ExcelWriterStepField field = outputFields[i];\n\n        rep.saveStepAttribute( id_transformation, id_step, i, \"field_name\", field.getName() );\n        rep.saveStepAttribute( id_transformation, id_step, i, \"field_type\", field.getTypeDesc() );\n        rep.saveStepAttribute( id_transformation, id_step, i, \"field_format\", field.getFormat() );\n        rep.saveStepAttribute( id_transformation, id_step, i, \"field_title\", field.getTitle() );\n        rep.saveStepAttribute( id_transformation, id_step, i, \"field_title_style_cell\", field.getTitleStyleCell() );\n        rep.saveStepAttribute( id_transformation, id_step, i, \"field_style_cell\", field.getStyleCell() );\n        rep.saveStepAttribute( id_transformation, id_step, i, \"field_comment_field\", field.getCommentField() );\n        rep.saveStepAttribute( id_transformation, id_step, i, \"field_comment_author_field\", field\n          .getCommentAuthorField() );\n        rep.saveStepAttribute( id_transformation, id_step, i, \"field_formula\", field.isFormula() );\n        rep.saveStepAttribute( id_transformation, id_step, i, \"field_hyperlink_field\", field.getHyperlinkField() );\n\n      }\n    } catch ( Exception e ) {\n      throw new KettleException( \"Unable to save step information to the repository for id_step=\" + id_step, e );\n    }\n  }\n\n  @Override\n  public void check( List<CheckResultInterface> remarks, TransMeta transMeta, StepMeta stepMeta,\n    RowMetaInterface prev, String[] input, String[] output, RowMetaInterface info, VariableSpace space,\n    Repository repository, IMetaStore metaStore ) {\n    CheckResult cr;\n\n    // Check output fields\n    if ( prev != null && prev.size() > 0 ) {\n      cr =\n        new CheckResult( CheckResultInterface.TYPE_RESULT_OK, BaseMessages.getString(\n          PKG, \"ExcelWriterStepMeta.CheckResult.FieldsReceived\", \"\" + prev.size() ), stepMeta );\n      remarks.add( cr );\n\n      String error_message = \"\";\n      boolean error_found = false;","sourceCodeStart":1108,"sourceCodeEnd":1144,"githubUrl":"https://github.com/pentaho/pentaho-kettle/blob/f3058517a153da500bf4551f46d79b91bf8ec552/plugins/excel/core/src/main/java/org/pentaho/di/trans/steps/excelwriter/ExcelWriterStepMeta.java#L1108-L1144","documentation":"Outer catch-all in ExcelWriterStepMeta.saveRep: an exception occurred while persisting the output-field definitions to the repository. The message includes the step id; the underlying exception is attached as the cause.","triggerScenarios":"Calling saveRep when the repository DB is read-only, the connection dropped, a field value exceeds column size, or id_step no longer exists.","commonSituations":"Read-only repository accounts; network blips during save of transformations; too-long field names/driver constraints.","solutions":["Check the wrapped cause for the underlying SQL/database error","Verify the repository user has INSERT/UPDATE privileges on r_step_attribute","Confirm the transformation still exists in the repository (valid id_step) and retry"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"try { meta.saveRep( rep, metaStore, idTrans, idStep ); } catch ( KettleException e ) { log.error( \"Save failed for id_step \" + idStep + \": \" + e.getCause(), e ); }","preventionTips":["Use a repository account with write privileges","Retry saves on transient DB failures","Validate attribute lengths against repository column sizes"],"tags":["repository","database","metadata","persistence"],"backgroundTag":"database-write-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"}