{"record":{"id":"57bb47949aa8a2fb","repo":"pentaho/pentaho-kettle","slug":"syslogmessagemeta-exception-unexpectederrorreadingstepinfo","errorCode":null,"errorMessage":"SyslogMessageMeta.Exception.UnexpectedErrorReadingStepInfo","messagePattern":"SyslogMessageMeta\\.Exception\\.UnexpectedErrorReadingStepInfo","errorType":"exception","errorClass":"KettleException","httpStatus":null,"severity":"error","filePath":"engine/src/main/java/org/pentaho/di/trans/steps/syslog/SyslogMessageMeta.java","lineNumber":256,"sourceCode":"      throw new KettleXMLException( BaseMessages.getString(\n        PKG, \"SyslogMessageMeta.Exception.UnableToReadStepInfo\" ), e );\n    }\n  }\n\n  public void readRep( Repository rep, IMetaStore metaStore, ObjectId id_step, List<DatabaseMeta> databases ) throws KettleException {\n\n    try {\n      messagefieldname = rep.getStepAttributeString( id_step, \"messagefieldname\" );\n      serverName = rep.getJobEntryAttributeString( id_step, \"servername\" );\n      port = rep.getJobEntryAttributeString( id_step, \"port\" );\n      facility = rep.getJobEntryAttributeString( id_step, \"facility\" );\n      priority = rep.getJobEntryAttributeString( id_step, \"priority\" );\n      datePattern = rep.getJobEntryAttributeString( id_step, \"datePattern\" );\n      addTimestamp = rep.getJobEntryAttributeBoolean( id_step, \"addTimestamp\" );\n      addHostName = rep.getJobEntryAttributeBoolean( id_step, \"addHostName\" );\n\n    } catch ( Exception e ) {\n      throw new KettleException( BaseMessages.getString(\n        PKG, \"SyslogMessageMeta.Exception.UnexpectedErrorReadingStepInfo\" ), e );\n    }\n  }\n\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, \"messagefieldname\", messagefieldname );\n      rep.saveJobEntryAttribute( id_transformation, id_step, \"port\", port );\n      rep.saveJobEntryAttribute( id_transformation, id_step, \"servername\", serverName );\n      rep.saveJobEntryAttribute( id_transformation, id_step, \"facility\", facility );\n      rep.saveJobEntryAttribute( id_transformation, id_step, \"priority\", priority );\n      rep.saveJobEntryAttribute( id_transformation, id_step, \"datePattern\", datePattern );\n      rep.saveJobEntryAttribute( id_transformation, id_step, \"addTimestamp\", addTimestamp );\n      rep.saveJobEntryAttribute( id_transformation, id_step, \"addHostName\", addHostName );\n\n    } catch ( Exception e ) {\n      throw new KettleException( BaseMessages.getString( PKG, \"SyslogMessageMeta.Exception.UnableToSaveStepInfo\" )\n        + id_step, e );","sourceCodeStart":238,"sourceCodeEnd":274,"githubUrl":"https://github.com/pentaho/pentaho-kettle/blob/f3058517a153da500bf4551f46d79b91bf8ec552/engine/src/main/java/org/pentaho/di/trans/steps/syslog/SyslogMessageMeta.java#L238-L274","documentation":"Outer catch-all in SyslogMessageMeta.readRep: an unexpected exception occurred while reading the step's attributes (message field, server, port, facility, priority) from the repository. The localized message wraps the original exception, which is attached as the cause.","triggerScenarios":"loadRep invoking readRep against a repository where the step's attribute rows are missing, corrupted, or the repository connection errors out mid-read.","commonSituations":"Repository schema partially migrated between Kettle versions; deleted repository rows for the step; network/DB errors while querying the repository tables.","solutions":["Check repository connectivity and re-run the load","Re-save the transformation to the repository to rewrite its attribute rows","Inspect the cause chain for the underlying repository/SQL error","Restore the transformation from a repository backup or re-import from XML"],"exampleFix":"// before\nmeta.loadRep(rep, metaStore, id_step, databases); // silent about cause\n// after\ntry { meta.loadRep(rep, metaStore, id_step, databases); } catch (KettleException e) { log.error(\"Cause: \" + e.getCause(), e); }","handlingStrategy":"try-catch","validationCode":"if (rep == null || !rep.isConnected()) { throw new KettleException(\"Repository not connected before loadRep\"); }","typeGuard":null,"tryCatchPattern":"try { meta.readRep(rep, metaStore, id_step, databases); } catch (KettleException e) { logError(\"Repository read failed: \" + (e.getCause()!=null?e.getCause().getMessage():e.getMessage()), e); }","preventionTips":["Verify repository connectivity before loading transformations","Keep repository schema upgraded to the client version","Back up repository contents regularly"],"tags":["kettle","repository","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"}