{"record":{"id":"5bfaba553e44b5bd","repo":"pentaho/pentaho-kettle","slug":"unable-to-load-job-entry-of-type-sendnagiospassivecheck-from-5bfaba","errorCode":null,"errorMessage":"Unable to load job entry of type 'SendNagiosPassiveCheck' from the repository for id_jobentry=","messagePattern":"Unable to load job entry of type 'SendNagiosPassiveCheck' from the repository for id_jobentry=","errorType":"exception","errorClass":"KettleException","httpStatus":null,"severity":"error","filePath":"engine/src/main/java/org/pentaho/di/job/entries/sendnagiospassivecheck/JobEntrySendNagiosPassiveCheck.java","lineNumber":281,"sourceCode":"  public void loadRep( Repository rep, IMetaStore metaStore, ObjectId id_jobentry, List<DatabaseMeta> databases,\n    List<SlaveServer> slaveServers ) throws KettleException {\n    try {\n      port = rep.getJobEntryAttributeString( id_jobentry, \"port\" );\n      serverName = rep.getJobEntryAttributeString( id_jobentry, \"servername\" );\n      password = rep.getJobEntryAttributeString( id_jobentry, \"password\" );\n      responseTimeOut = rep.getJobEntryAttributeString( id_jobentry, \"responseTimeOut\" );\n      connectionTimeOut = rep.getJobEntryAttributeString( id_jobentry, \"connectionTimeOut\" );\n\n      senderServerName = rep.getJobEntryAttributeString( id_jobentry, \"senderServerName\" );\n      senderServiceName = rep.getJobEntryAttributeString( id_jobentry, \"senderServiceName\" );\n\n      message = rep.getJobEntryAttributeString( id_jobentry, \"message\" );\n\n      encryptionMode = getEncryptionModeByCode( rep.getJobEntryAttributeString( id_jobentry, \"encryptionMode\" ) );\n      level = getLevelByCode( rep.getJobEntryAttributeString( id_jobentry, \"level\" ) );\n\n    } catch ( KettleException dbe ) {\n      throw new KettleException(\n        \"Unable to load job entry of type 'SendNagiosPassiveCheck' from the repository for id_jobentry=\"\n          + id_jobentry, dbe );\n    }\n  }\n\n  public void saveRep( Repository rep, IMetaStore metaStore, ObjectId id_job ) throws KettleException {\n    try {\n      rep.saveJobEntryAttribute( id_job, getObjectId(), \"port\", port );\n      rep.saveJobEntryAttribute( id_job, getObjectId(), \"servername\", serverName );\n      rep.saveJobEntryAttribute( id_job, getObjectId(), \"password\", password );\n      rep.saveJobEntryAttribute( id_job, getObjectId(), \"responseTimeOut\", responseTimeOut );\n      rep.saveJobEntryAttribute( id_job, getObjectId(), \"connectionTimeOut\", connectionTimeOut );\n\n      rep.saveJobEntryAttribute( id_job, getObjectId(), \"senderServerName\", senderServerName );\n      rep.saveJobEntryAttribute( id_job, getObjectId(), \"senderServiceName\", senderServiceName );\n\n      rep.saveJobEntryAttribute( id_job, getObjectId(), \"message\", message );\n      rep.saveJobEntryAttribute( id_job, getObjectId(), \"encryptionMode\", getEncryptionModeCode( encryptionMode ) );","sourceCodeStart":263,"sourceCodeEnd":299,"githubUrl":"https://github.com/pentaho/pentaho-kettle/blob/f3058517a153da500bf4551f46d79b91bf8ec552/engine/src/main/java/org/pentaho/di/job/entries/sendnagiospassivecheck/JobEntrySendNagiosPassiveCheck.java#L263-L299","documentation":"This KettleException wraps any KettleException thrown while reading the SendNagiosPassiveCheck job entry attributes (message, encryptionMode, level) from the repository during loadRep. It indicates the repository read of this job entry's metadata failed, with the underlying database/repository exception attached as the cause. The library throws it to give context about which job entry type and row id failed to load.","triggerScenarios":"Calling loadRep (directly or via JobMeta loading a job from a repository) when the underlying rep.getJobEntryAttributeString calls fail: repository database down/unreachable, R_JOBENTRY_ATTRIBUTE rows missing or corrupted, schema version mismatch, or an invalid id_jobentry.","commonSituations":"Repository database migrated or restored incompletely so attribute rows are missing; opening an old job file against a newer/older Pentaho repository schema; network drop to the repository DB mid-load; permissions revoked on the repository tables.","solutions":["Check the cause chain (dbe) for the real repository/database error and fix connectivity or credentials to the repository DB","Verify rows exist in R_JOBENTRY_ATTRIBUTE for the given id_jobentry; re-save the job entry from Spoon to recreate them","Repair or upgrade the repository schema with the Pentaho repository repair/upgrade tools","If the repository is irrecoverable, export/recreate the job and re-enter the Nagios job entry settings"],"exampleFix":"// before\njobEntry.loadRep(rep, metaStore, idJobentry, databases, slaveServers);\n// after\ntry {\n  jobEntry.loadRep(rep, metaStore, idJobentry, databases, slaveServers);\n} catch (KettleException e) {\n  logError(\"Failed to load SendNagiosPassiveCheck entry \" + idJobentry + \": \" + e.getCause(), e);\n  // check repository DB health before retrying\n}","handlingStrategy":"try-catch","validationCode":"// before loadRep\nif (id_jobentry == null) throw new IllegalArgumentException(\"id_jobentry is null\");\n// optionally verify repository connectivity first\nif (!rep.isConnected()) throw new IllegalStateException(\"Repository not connected\");","typeGuard":null,"tryCatchPattern":"try {\n  entry.loadRep(rep, metaStore, idJobentry, databases, slaveServers);\n} catch (KettleException e) {\n  logError(\"Load failed: \" + (e.getCause() != null ? e.getCause().getMessage() : e.getMessage()), e);\n  // fall back to defaults or abort job setup\n}","preventionTips":["Always connect and verify the repository before loading job metadata","Keep repository schema and PDI client versions aligned","Back up the repository DB; verify rows after restores/migrations","Log the cause chain - the wrapped KettleException holds the real DB error"],"tags":["pdi","repository","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"}