{"record":{"id":"b45332f4ff8fc911","repo":"pentaho/pentaho-kettle","slug":"pgpdecryptstream-exception-couldnotfindfield","errorCode":null,"errorMessage":"PGPDecryptStream.Exception.CouldnotFindField","messagePattern":"PGPDecryptStream\\.Exception\\.CouldnotFindField","errorType":"exception","errorClass":"KettleException","httpStatus":null,"severity":"error","filePath":"engine/src/main/java/org/pentaho/di/trans/steps/pgpdecryptstream/PGPDecryptStream.java","lineNumber":89,"sourceCode":"        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\n        if ( data.indexOfField < 0 ) {\n          data.indexOfField = data.previousRowMeta.indexOfValue( meta.getStreamField() );\n          if ( data.indexOfField < 0 ) {\n            // The field is unreachable !\n            throw new KettleException( BaseMessages.getString(\n              PKG, \"PGPDecryptStream.Exception.CouldnotFindField\", meta.getStreamField() ) );","sourceCodeStart":71,"sourceCodeEnd":107,"githubUrl":"https://github.com/pentaho/pentaho-kettle/blob/f3058517a153da500bf4551f46d79b91bf8ec552/engine/src/main/java/org/pentaho/di/trans/steps/pgpdecryptstream/PGPDecryptStream.java#L71-L107","documentation":"Message key PGPDecryptStream.Exception.CouldnotFindField thrown in processRow: the configured passphrase field name cannot be resolved in the previous row metadata (indexOfPassphraseField < 0), so the passphrase is unreachable for this row.","triggerScenarios":"Thrown at engine/src/main/java/org/pentaho/di/trans/steps/pgpdecryptstream/PGPDecryptStream.java:89 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set the passphrase field to a field actually present in the incoming stream","Rename or add the field upstream so it reaches this step"],"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"}