{"record":{"id":"35cb46061c503a1c","repo":"pentaho/pentaho-kettle","slug":"restmeta-exception-unexpectederrorreadingstepinfo","errorCode":"RestMeta.Exception.UnexpectedErrorReadingStepInfo","errorMessage":"RestMeta.Exception.UnexpectedErrorReadingStepInfo","messagePattern":"RestMeta\\.Exception\\.UnexpectedErrorReadingStepInfo","errorType":"exception","errorClass":"KettleException","httpStatus":null,"severity":"error","filePath":"plugins/rest/core/src/main/java/org/pentaho/di/trans/steps/rest/RestMeta.java","lineNumber":672,"sourceCode":"      for ( int i = 0; i < nrHeaders; i++ ) {\n        headerField[i] = rep.getStepAttributeString( idStep, i, TAG_HEADER_FIELD );\n        headerName[i] = rep.getStepAttributeString( idStep, i, TAG_HEADER_NAME );\n      }\n      for ( int i = 0; i < nrParams; i++ ) {\n        parameterField[i] = rep.getStepAttributeString( idStep, i, TAG_PARAMETER_FIELD );\n        parameterName[i] = rep.getStepAttributeString( idStep, i, TAG_PARAMETER_NAME );\n      }\n      for ( int i = 0; i < nrMatrixParams; i++ ) {\n        matrixParameterField[i] = rep.getStepAttributeString( idStep, i, TAG_MATRIX_PARAMETER_FIELD );\n        matrixParameterName[i] = rep.getStepAttributeString( idStep, i, TAG_MATRIX_PARAMETER_NAME );\n      }\n\n      fieldName = rep.getStepAttributeString( idStep, TAG_RESULT_NAME );\n      resultCodeFieldName = rep.getStepAttributeString( idStep, TAG_RESULT_CODE );\n      responseTimeFieldName = rep.getStepAttributeString( idStep, TAG_RESPONSE_TIME );\n      responseHeaderFieldName = rep.getStepAttributeString( idStep, TAG_RESPONSE_HEADER );\n    } catch ( Exception e ) {\n      throw new KettleException(\n        BaseMessages.getString( PKG, \"RestMeta.Exception.UnexpectedErrorReadingStepInfo\" ), e );\n    }\n  }\n\n  @Override\n  public void saveRep( Repository rep, IMetaStore metaStore, ObjectId idTransformation, ObjectId idStep ) throws KettleException {\n    try {\n      rep.saveStepAttribute( idTransformation, idStep, TAG_APPLICATION_TYPE, applicationType );\n      rep.saveStepAttribute( idTransformation, idStep, TAG_METHOD, method );\n      rep.saveStepAttribute( idTransformation, idStep, TAG_URL, url );\n      rep.saveStepAttribute( idTransformation, idStep, TAG_METHOD_FIELD_NAME, methodFieldName );\n\n      rep.saveStepAttribute( idTransformation, idStep, TAG_DYNAMIC_METHOD, dynamicMethod );\n      rep.saveStepAttribute( idTransformation, idStep, TAG_URL_IN_FIELD, urlInField );\n      rep.saveStepAttribute( idTransformation, idStep, TAG_URL_FIELD, urlField );\n      rep.saveStepAttribute( idTransformation, idStep, TAG_BODY_FIELD, bodyField );\n      rep.saveStepAttribute( idTransformation, idStep, TAG_HTTP_LOGIN, httpLogin );\n      rep.saveStepAttribute( idTransformation, idStep, TAG_HTTP_PASSWORD, Encr","sourceCodeStart":654,"sourceCodeEnd":690,"githubUrl":"https://github.com/pentaho/pentaho-kettle/blob/f3058517a153da500bf4551f46d79b91bf8ec552/plugins/rest/core/src/main/java/org/pentaho/di/trans/steps/rest/RestMeta.java#L654-L690","documentation":"RestMeta.readRep wraps any exception from reading the step's attributes from the repository into a KettleException with this message. It indicates an unexpected failure while loading REST step configuration from a Pentaho repository (database or file).","triggerScenarios":"Repository connection failure, missing repository object/tables, or repository API exception while calling getStepAttributeString for the REST step's attributes.","commonSituations":"Repository database down or credentials changed; repository schema outdated (needs upgrade); corrupted repository entry.","solutions":["Verify repository connectivity and credentials","Upgrade/repair the repository schema via the repository tools","Re-save the step to rewrite its attributes","Check repository logs for the underlying exception (wrapped as cause)"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"try {\n  stepMeta.readRep(rep, metaStore, idStep, databases);\n} catch (KettleException e) {\n  logError(\"Repository read failed: \" + e.getCause());\n}","preventionTips":["Verify repository connection health before loading transformations","Keep repository schema upgraded to match the Pentaho version","Log and monitor the cause exception, not just the wrapper message"],"tags":["kettle","repository","step-metadata","rest-meta"],"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"}