{"record":{"id":"4e652144bb5c7e9f","repo":"pentaho/pentaho-kettle","slug":"pgpdecryptstream-error-passphrasefieldmissing","errorCode":null,"errorMessage":"PGPDecryptStream.Error.PassphraseFieldMissing","messagePattern":"PGPDecryptStream\\.Error\\.PassphraseFieldMissing","errorType":"exception","errorClass":"KettleException","httpStatus":null,"severity":"error","filePath":"engine/src/main/java/org/pentaho/di/trans/steps/pgpdecryptstream/PGPDecryptStream.java","lineNumber":83,"sourceCode":"      if ( first ) {\n        first = false;\n        // get the RowMeta\n        data.previousRowMeta = getInputRowMeta().clone();\n        data.NrPrevFields = data.previousRowMeta.size();\n        data.outputRowMeta = data.previousRowMeta;\n        meta.getFields( getTransMeta().getBowl(), data.outputRowMeta, getStepname(), null, null, this, repository,\n          metaStore );\n\n        // Check is stream data field is provided\n        if ( Utils.isEmpty( meta.getStreamField() ) ) {\n          throw new KettleException( BaseMessages.getString( PKG, \"PGPDecryptStream.Error.DataStreamFieldMissing\" ) );\n        }\n\n        if ( meta.isPassphraseFromField() ) {\n          // Passphrase from field\n          String fieldname = meta.getPassphraseFieldName();\n          if ( Utils.isEmpty( fieldname ) ) {\n            throw new KettleException( BaseMessages.getString(\n              PKG, \"PGPDecryptStream.Error.PassphraseFieldMissing\" ) );\n          }\n          data.indexOfPassphraseField = data.previousRowMeta.indexOfValue( fieldname );\n          if ( data.indexOfPassphraseField < 0 ) {\n            // The field is unreachable !\n            throw new KettleException( BaseMessages.getString(\n              PKG, \"PGPDecryptStream.Exception.CouldnotFindField\", fieldname ) );\n          }\n        } else {\n          // Check is passphrase is provided\n          data.passPhrase =\n            Encr.decryptPasswordOptionallyEncrypted( environmentSubstitute( meta.getPassphrase() ) );\n          if ( Utils.isEmpty( data.passPhrase ) ) {\n            throw new KettleException( BaseMessages.getString( PKG, \"PGPDecryptStream.Error.PassphraseMissing\" ) );\n          }\n        }\n\n        // cache the position of the field","sourceCodeStart":65,"sourceCodeEnd":101,"githubUrl":"https://github.com/pentaho/pentaho-kettle/blob/f3058517a153da500bf4551f46d79b91bf8ec552/engine/src/main/java/org/pentaho/di/trans/steps/pgpdecryptstream/PGPDecryptStream.java#L65-L101","documentation":"Message key PGPDecryptStream.Error.PassphraseFieldMissing thrown in processRow: passphrase-from-field is enabled but the passphrase field name is empty (Utils.isEmpty on meta.getPassphraseFieldName()), so the step cannot locate the passphrase.","triggerScenarios":"Thrown at engine/src/main/java/org/pentaho/di/trans/steps/pgpdecryptstream/PGPDecryptStream.java:83 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fill in the passphrase field name, or disable passphrase-from-field and provide a fixed passphrase","Ensure the named field exists in the incoming rows"],"exampleFix":null,"handlingStrategy":"validation","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"}